From fe9b211f59569d420e8d397d865d837ce8eabdb4 Mon Sep 17 00:00:00 2001 From: TekH Date: Fri, 16 Jan 2026 13:28:11 +0100 Subject: [PATCH] Add SqlClient using and TODO for generic repository Added Microsoft.Data.SqlClient using directive to CatalogRepository.cs. Also added a TODO comment suggesting the use of a generic repository pattern to minimize code duplication. --- DbFirst.Infrastructure/Repositories/CatalogRepository.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/DbFirst.Infrastructure/Repositories/CatalogRepository.cs b/DbFirst.Infrastructure/Repositories/CatalogRepository.cs index f37ed80..42b9f45 100644 --- a/DbFirst.Infrastructure/Repositories/CatalogRepository.cs +++ b/DbFirst.Infrastructure/Repositories/CatalogRepository.cs @@ -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. IRepository) to reduce code duplication. public class CatalogRepository : ICatalogRepository { private readonly ApplicationDbContext _db;