using ApiPolo.Models.VT_dbcontext;
using Microsoft.EntityFrameworkCore;
namespace ApiPolo.Models
{
///
public class VT_Buoni_DbContext : DbContext
{
///
public DbSet? buoni { get; set; }
///
public VT_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
});
}
}
}