ApiManutenzioni/ApiPolo/Models/Sicilia_dbcontext/SICILIA_COMPO_IMPIA_TABLEDbContext.cs
2024-01-23 11:59:33 +01:00

28 lines
871 B
C#

using Microsoft.EntityFrameworkCore;
namespace ApiPolo.Models.Sicilia_dbcontext
{
/// <summary></summary>
public class SICILIA_COMPO_IMPIA_TABLEDbContext:DbContext
{
/// <summary></summary>
public DbSet<Compo_Impia_Table>? Componen { get; set; }
/// <summary></summary>
public SICILIA_COMPO_IMPIA_TABLEDbContext(DbContextOptions<SICILIA_COMPO_IMPIA_TABLEDbContext> options) : base(options)
{
}
/// <summary></summary>
protected override void OnModelCreating(ModelBuilder modelBuilder)
{
modelBuilder.Entity<Compo_Impia_Table>().ToTable("LABSEMICOMIMP");
modelBuilder.Entity<Compo_Impia_Table>().HasKey(table => new
{
table.cocodimp,
table.cprownum,
table.cocodazi
});
}
}
}