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