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