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