29 lines
808 B
C#
29 lines
808 B
C#
|
|
using Microsoft.EntityFrameworkCore;
|
|
|
|
namespace ApiPolo.Models.VT_dbcontext
|
|
{
|
|
/// <summary></summary>
|
|
public class VT_AZIENDA_RIF_DbContext : DbContext
|
|
{
|
|
/// <summary></summary>
|
|
public DbSet<AziendaRif>? Azi { get; set; }
|
|
|
|
/// <summary></summary>
|
|
public VT_AZIENDA_RIF_DbContext(DbContextOptions<VT_AZIENDA_RIF_DbContext> options) : base(options)
|
|
{
|
|
}
|
|
/// <summary></summary>
|
|
protected override void OnModelCreating(ModelBuilder modelBuilder)
|
|
{
|
|
modelBuilder.Entity<AziendaRif>().ToTable("PIAZIRIF");
|
|
modelBuilder.Entity<AziendaRif>().HasKey(table => new
|
|
{
|
|
table.piazihoc,
|
|
table.picodtec,
|
|
table.pirifazi
|
|
});
|
|
}
|
|
}
|
|
}
|