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

28 lines
803 B
C#

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