29 lines
801 B
C#
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
|
|
});
|
|
}
|
|
}
|
|
}
|