23 lines
623 B
C#
23 lines
623 B
C#
using Microsoft.EntityFrameworkCore;
|
|
|
|
namespace ApiPolo.Models.Discovery_dbcontext
|
|
{
|
|
/// <summary></summary>
|
|
public class DISCO_CHIUSUREDbContext:DbContext
|
|
{
|
|
/// <summary></summary>
|
|
public DbSet<Chiusure>? Chiusure { get; set; }
|
|
|
|
/// <summary></summary>
|
|
public DISCO_CHIUSUREDbContext(DbContextOptions<DISCO_CHIUSUREDbContext> options) : base(options)
|
|
{
|
|
}
|
|
|
|
/// <summary></summary>
|
|
protected override void OnModelCreating(ModelBuilder modelBuilder)
|
|
{
|
|
modelBuilder.Entity<Chiusure>().ToView("API_CHIUSURE");
|
|
}
|
|
}
|
|
}
|