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