using Microsoft.EntityFrameworkCore; namespace ApiPolo.Models.Discovery_dbcontext { /// public class DISCO_MAGAZZINIDbContext : DbContext { /// public DbSet? Magaz { get; set; } /// public DISCO_MAGAZZINIDbContext(DbContextOptions options) : base(options) { } /// protected override void OnModelCreating(ModelBuilder modelBuilder) { modelBuilder.Entity().ToTable("DISCOMAGAZZIN"); modelBuilder.Entity().HasKey(table => new { table.mgcodmag }); } } }