24 lines
660 B
C#
24 lines
660 B
C#
using Microsoft.EntityFrameworkCore;
|
|
|
|
namespace ApiSoftway.Models.Gesa_DbContext
|
|
{
|
|
public class GESA_MODGIR_DbContext : DbContext
|
|
{
|
|
public DbSet<Modgir>? Mod { get; set; }
|
|
|
|
/// <summary></summary>
|
|
public GESA_MODGIR_DbContext(DbContextOptions<GESA_MODGIR_DbContext> options) : base(options)
|
|
{
|
|
}
|
|
|
|
/// <summary></summary>
|
|
protected override void OnModelCreating(ModelBuilder modelBuilder)
|
|
{
|
|
modelBuilder.Entity<Modgir>().ToTable("GESAPIMODGIR");
|
|
modelBuilder.Entity<Modgir>().HasKey(table => new {
|
|
table.Piprogre
|
|
});
|
|
}
|
|
}
|
|
}
|