ApiSoftway/Models/Gesa_DbContext/GESA_CONSEGNE_DbContext.cs
Marco Audiffredi 8ab01eb1bd Rimappatura di consegne dopo master/detail.
Filtro destinazioni per esporre un giro alla volta
2024-07-29 16:17:50 +02:00

26 lines
750 B
C#

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