This commit is contained in:
OlgunR
2026-01-16 14:10:59 +01:00
6 changed files with 12 additions and 0 deletions

View File

@@ -12,6 +12,7 @@ public partial class ApplicationDbContext : DbContext
public virtual DbSet<VwmyCatalog> VwmyCatalogs { get; set; }
// TODO: Configure column names on appsettings via IConfiguration
protected override void OnModelCreating(ModelBuilder modelBuilder)
{
modelBuilder.Entity<VwmyCatalog>(entity =>

View File

@@ -6,6 +6,7 @@ using System.Data;
namespace DbFirst.Infrastructure.Repositories;
// TODO: instead of creating implementation of repository per entity, consider using generic repository pattern (eg. Repository<T>) to reduce code duplication.
public class CatalogRepository : ICatalogRepository
{
private readonly ApplicationDbContext _db;