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