Refactor: add TODOs for generic repository pattern

Added TODO comments in ICatalogRepository and CatalogRepository to suggest adopting a generic repository pattern to reduce code duplication. Also noted the potential move of the interface to the application layer for better adherence to clean architecture principles.
This commit is contained in:
2026-01-16 13:30:30 +01:00
parent cca6af814e
commit 15680746b0
2 changed files with 3 additions and 1 deletions

View File

@@ -6,7 +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<T>) to reduce code duplication.
// 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;