using Microsoft.EntityFrameworkCore;
namespace ApiPolo.Models.PMS_dbcontext
{
///
public class PMS_VT_IMPIANTI_DbContext : DbContext
{
///
public DbSet? Imptable { get; set; }
///
public PMS_VT_IMPIANTI_DbContext(DbContextOptions options) : base(options)
{
}
///
protected override void OnModelCreating(ModelBuilder modelBuilder)
{
modelBuilder.Entity().ToTable("MIMPIANTI");
modelBuilder.Entity().HasKey(table => new
{
table.imcodazi,
table.imcodimp
});
}
}
}