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