using Microsoft.EntityFrameworkCore; namespace ApiPolo.Models.VT_dbcontext { /// public class VT_REGISTRAZIONE_DbContext : DbContext { /// public DbSet? Reg { get; set; } /// public VT_REGISTRAZIONE_DbContext(DbContextOptions options) : base(options) { } /// protected override void OnModelCreating(ModelBuilder modelBuilder) { modelBuilder.Entity().ToTable("REGISTRAZIONI"); modelBuilder.Entity().HasKey(table => new { table.Id }); } } }