using Microsoft.EntityFrameworkCore; namespace ApiPolo.Models.VT_dbcontext { /// public class VT_CONTI_TABLE_DbContext : DbContext { /// public DbSet? Anagtable { get; set; } /// public VT_CONTI_TABLE_DbContext(DbContextOptions options) : base(options) { } /// protected override void OnModelCreating(ModelBuilder modelBuilder) { modelBuilder.Entity().ToTable("CONTI"); modelBuilder.Entity().HasKey(table => new { table.antipcon, table.ancodice, table.ancodazi }); } } }