using Microsoft.EntityFrameworkCore; namespace ApiPolo.Models.Tedesco_dbcontext { /// public class TEDES_COMPO_IMPIA_TABLEDbContext:DbContext { /// public DbSet? Componen { get; set; } /// public TEDES_COMPO_IMPIA_TABLEDbContext(DbContextOptions options) : base(options) { } /// protected override void OnModelCreating(ModelBuilder modelBuilder) { modelBuilder.Entity().ToTable("TEDESMICOMIMP"); modelBuilder.Entity().HasKey(table => new { table.cocodimp, table.cprownum, table.cocodazi }); } } }