Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
ardalis authored Aug 2, 2022
1 parent 6a3dfd5 commit e244d50
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,8 @@ Base class with tests for adding specifications to a DDD model. Also includes a

- Implement infrastructure for specification validators. [Issue #111](https://github.com/ardalis/Specification/issues/111)

- `GetBySpecAsync` and similar methods are marked obsolete; prefer `FirstOrDefault` or `SingleOrDefault` instead.

## Sample Usage

The Specification pattern pulls query-specific logic out of other places in the application where it currently exists. For applications with minimal abstraction that use EF Core directly, the specification will eliminate `Where`, `Include`, `Select` and similar expressions from almost all places where they're being used. In applications that abstract database query logic behind a `Repository` abstraction, the specification will typically eliminate the need for many custom `Repository` implementation classes as well as custom query methods on `Repository` implementations. Instead of many different ways to filter and shape data using various methods, the same capability is achieved with few core methods.
Expand Down

0 comments on commit e244d50

Please sign in to comment.