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.
This commit is contained in:
2026-01-16 13:28:11 +01:00
parent ab1f73f987
commit fe9b211f59

View File

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