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