18 lines
487 B
C#
18 lines
487 B
C#
using Microsoft.EntityFrameworkCore;
|
|
|
|
namespace ApiSoftway.Models.Gesa_DbContext
|
|
{
|
|
public class GESA_CLIENTI_DbContext : DbContext
|
|
{
|
|
public DbSet<Clienti>? Cli { get; set; }
|
|
public GESA_CLIENTI_DbContext(DbContextOptions<GESA_CLIENTI_DbContext> options) : base(options)
|
|
{
|
|
}
|
|
protected override void OnModelCreating(ModelBuilder modelBuilder)
|
|
{
|
|
modelBuilder.Entity<Clienti>().ToView("API_CLIENTI");
|
|
}
|
|
|
|
}
|
|
}
|