23 lines
649 B
C#
23 lines
649 B
C#
using Microsoft.EntityFrameworkCore;
|
|
|
|
namespace ApiPolo.Models.VT_dbcontext
|
|
{
|
|
/// <summary></summary>
|
|
public class VT_AZIENDE_PRESENTI_DbContext : DbContext
|
|
{
|
|
/// <summary></summary>
|
|
public DbSet<AziendaPres>? Aziende { get; set; }
|
|
|
|
/// <summary></summary>
|
|
public VT_AZIENDE_PRESENTI_DbContext(DbContextOptions<VT_AZIENDE_PRESENTI_DbContext> options) : base(options)
|
|
{
|
|
}
|
|
|
|
/// <summary></summary>
|
|
protected override void OnModelCreating(ModelBuilder modelBuilder)
|
|
{
|
|
modelBuilder.Entity<AziendaPres>().ToView("API_AZIENDE_PRESENTI");
|
|
}
|
|
}
|
|
}
|