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