using Microsoft.EntityFrameworkCore; namespace ApiSoftway.Models.Gesa_DbContext { public class GESA_CLIENTI_DbContext : DbContext { public DbSet? Cli { get; set; } public GESA_CLIENTI_DbContext(DbContextOptions options) : base(options) { } protected override void OnModelCreating(ModelBuilder modelBuilder) { modelBuilder.Entity().ToView("API_CLIENTI"); } } }