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

29 lines
809 B
C#

using Microsoft.EntityFrameworkCore;
namespace ApiPolo.Models.Lifta_dbcontext
{
/// <summary></summary>
public class LIFTA_PRESE_Dbcontext : DbContext
{
/// <summary></summary>
public DbSet<Prese>? Prese { get; set; }
/// <summary></summary>
public LIFTA_PRESE_Dbcontext(DbContextOptions<LIFTA_PRESE_Dbcontext> options) : base(options)
{
}
/// <summary></summary>
protected override void OnModelCreating(ModelBuilder modelBuilder)
{
modelBuilder.Entity<Prese>().ToTable("PIPRESA");
modelBuilder.Entity<Prese>().HasKey(table => new {
table.picodazi,
table.pimpianto,
table.picodint,
table.pidatman
});
}
}
}