29 lines
816 B
C#
29 lines
816 B
C#
|
|
using Microsoft.EntityFrameworkCore;
|
|
|
|
namespace ApiPolo.Models.Lift_web_dbcontext
|
|
{
|
|
/// <summary></summary>
|
|
public class LIFT_WEB_PRESEDbContext : DbContext
|
|
{
|
|
/// <summary></summary>
|
|
public DbSet<Prese>? Prese { get; set; }
|
|
|
|
/// <summary></summary>
|
|
public LIFT_WEB_PRESEDbContext(DbContextOptions<LIFT_WEB_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
|
|
});
|
|
}
|
|
}
|
|
}
|