using ApiPolo.Models.Lift_web_dbcontext;
using Microsoft.EntityFrameworkCore;
namespace ApiPolo.Models.Security_dbcontext
{
///
public class SECURITY_BUONI_DbContext: DbContext
{
///
public DbSet? buoni { get; set; }
///
public SECURITY_BUONI_DbContext(DbContextOptions options) : base(options)
{
}
///
protected override void OnModelCreating(ModelBuilder modelBuilder)
{
modelBuilder.Entity().ToTable("BUONI");
modelBuilder.Entity().HasKey(table => new
{
table.azienda,
table.ser_buono
});
}
}
}