using Microsoft.EntityFrameworkCore;
namespace ApiPolo.Models.VT_dbcontext
{
///
public class VT_COMMESSE_TABLE_DbContext : DbContext
{
///
public DbSet? CommTable { get; set; }
///
public VT_COMMESSE_TABLE_DbContext(DbContextOptions options) : base(options)
{
}
///
protected override void OnModelCreating(ModelBuilder modelBuilder)
{
modelBuilder.Entity().ToTable("COMMESSE");
modelBuilder.Entity().HasKey(table => new {
table.laserial,
table.lacodazi
});
}
}
}