using Microsoft.EntityFrameworkCore; namespace ApiPolo.Models.PMS_dbcontext { /// public class PMS_PRESE_DbContext : DbContext { /// public DbSet? Prese { get; set; } /// public PMS_PRESE_DbContext(DbContextOptions options) : base(options) { } /// protected override void OnModelCreating(ModelBuilder modelBuilder) { modelBuilder.Entity().ToTable("PIPRESA"); modelBuilder.Entity().HasKey(table => new { table.picodazi, table.pimpianto, table.picodint, table.pidatman }); } } }