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