using Microsoft.EntityFrameworkCore;
namespace ApiPolo.Models.Marrocco_dbcontext
{
///
public class MARRO_NOTIFICHEDbContext : DbContext
{
///
public DbSet? Notif { get; set; }
///
public MARRO_NOTIFICHEDbContext(DbContextOptions options) : base(options)
{
}
///
protected override void OnModelCreating(ModelBuilder modelBuilder)
{
//modelBuilder.Entity().ToView("API_NOTIFICHE");
modelBuilder.Entity().ToTable("PINOTIFI");
modelBuilder.Entity().HasKey(table => new {
table.picodazi,
table.piserial
});
}
}
}