https://www.perplexity.ai/search/level-layers-functionality-tec-XUGF.P3OQ222h9LUWsYxIw#3
"Supplement with specific repositories for complex queries" means that besides having a general, often generic repository for simple CRUD operations, you create specialized repository classes to handle more elaborate and performance-sensitive data retrieval needs that don't fit well into simple CRUD patterns. These specialized repositories encapsulate complex querying logic, using techniques like joins, projections, or raw SQL for efficiency.
- Specific Repository for Complex Queries
- For example, you might have a generic
IRepository<T>for basic CRUD, but also anIInvoiceRepositorywith methods like:
- For example, you might have a generic
public interface IInvoiceRepository : IRepository