TIL: How to Use the Specification Pattern in C# to Simplify Repositories

from blog Just Some Code, | ↗ original
Repositories are the least SOLID part of our codebases. When we work with Domain-Driven Design, we take care of our business domain and forget about our data-access layer. We end up dumping, in a single interface, every combination of methods and parameters to retrieve our entities from the database. This way, we break the Single Responsibility...