Specification
Base class with tests for adding specifications to a DDD model
Specification is a .NET library that implements the Specification pattern to encapsulate query logic into reusable, composable objects. Its primary goal is to pull filtering, sorting, and projection logic out of repositories and services, reducing duplication and improving maintainability. The library works especially well with Entity Framework Core, enabling developers to centralize query definitions instead of scattering LINQ expressions throughout the codebase.