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

27 lines
831 B
C#

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