28 lines
806 B
C#
28 lines
806 B
C#
using Microsoft.EntityFrameworkCore;
|
|
|
|
namespace ApiPolo.Models.Sarom_dbcontext
|
|
{
|
|
/// <summary></summary>
|
|
public class SAROM_PRESEDbContext : DbContext
|
|
{
|
|
/// <summary></summary>
|
|
public DbSet<Prese>? Prese { get; set; }
|
|
|
|
/// <summary></summary>
|
|
public SAROM_PRESEDbContext(DbContextOptions<SAROM_PRESEDbContext> options) : base(options)
|
|
{
|
|
}
|
|
/// <summary>A</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
|
|
});
|
|
}
|
|
}
|
|
}
|