using Microsoft.EntityFrameworkCore; namespace ApiPolo.Models.Sarom_dbcontext { /// public class SAROM_PAGAMDbContext : DbContext { /// public DbSet? Pagamenti { get; set; } /// public SAROM_PAGAMDbContext(DbContextOptions options) : base(options) { } /// protected override void OnModelCreating(ModelBuilder modelBuilder) { modelBuilder.Entity().ToView("API_PAGAMENTI"); } } }