using Microsoft.EntityFrameworkCore; namespace ApiSoftway.Models.Gesa_DbContext { public class GESA_GIRICONSEGNE_DbContext: DbContext { /// public DbSet? GiriCons { get; set; } /// public GESA_GIRICONSEGNE_DbContext(DbContextOptions options) : base(options) { } /// protected override void OnModelCreating(ModelBuilder modelBuilder) { modelBuilder.Entity().ToTable("GESAPIGIRCON"); modelBuilder.Entity().HasKey(table => new { table.Pisergir }); } } }