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

29 lines
801 B
C#

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