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