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