ApiManutenzioni/ApiPolo/Models/Siet_dbcontext/SIET_COMMESSE_DESC_DbContext.cs
2024-04-23 15:19:58 +02:00

27 lines
794 B
C#

using Microsoft.EntityFrameworkCore;
namespace ApiPolo.Models.Siet_dbcontext
{
/// <summary></summary>
public class SIET_COMMESSE_DESC_DbContext : DbContext
{
/// <summary></summary>
public DbSet<CommessaDesc>? Commdesc { get; set; }
/// <summary></summary>
public SIET_COMMESSE_DESC_DbContext(DbContextOptions<SIET_COMMESSE_DESC_DbContext> options) : base(options)
{
}
/// <summary></summary>
protected override void OnModelCreating(ModelBuilder modelBuilder)
{
modelBuilder.Entity<CommessaDesc>().ToTable("SIET2LAV_MAST");
modelBuilder.Entity<CommessaDesc>().HasKey(table => new {
table.laserial,
table.latiplav
});
}
}
}