mirror of
https://github.com/Biarity/Sieve.git
synced 2024-11-24 22:42:30 +01:00
Update README.md
This commit is contained in:
parent
ede8da2d65
commit
b953e7d688
@ -16,7 +16,7 @@ We'll use Sieve to add sorting, filtering, and pagination capabilities when GET-
|
||||
Inject the `SieveProcessor<TEntity>` service for each entity you'd like to use Sieve with.
|
||||
So to use Sieve with `Post`s, in `ConfigureServices` in `Startup.cs` add:
|
||||
```
|
||||
services.AddScoped<SieveProcessor<Post>>();
|
||||
services.AddScoped<ISieveProcessor<Post>, SieveProcessor<Post>>();
|
||||
```
|
||||
|
||||
### 2. Tell Sieve which properties you'd like to sort/filter in your models
|
||||
|
Loading…
Reference in New Issue
Block a user