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