using Microsoft.EntityFrameworkCore; namespace ApiPolo.Models.Tedesco_dbcontext { /// public class TEDES_CHIAMATA_SERIALE_DbContext : DbContext { /// public DbSet? Seriali { get; set; } /// public TEDES_CHIAMATA_SERIALE_DbContext(DbContextOptions options) : base(options) { } /// protected override void OnModelCreating(ModelBuilder modelBuilder) { modelBuilder.Entity().ToTable("LABSEPINUMCHI"); modelBuilder.Entity().HasKey(table => new { table.piditta }); } } }