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

29 lines
810 B
C#

using Microsoft.EntityFrameworkCore;
namespace ApiPolo.Models.Gitoga_dbcontext
{
/// <summary></summary>
public class GITSR_PRESE_Dbcontext : DbContext
{
/// <summary></summary>
public DbSet<Prese>? Prese { get; set; }
/// <summary></summary>
public GITSR_PRESE_Dbcontext(DbContextOptions<GITSR_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
});
}
}
}