Update README.md

This commit is contained in:
Biarity 2018-01-30 12:46:24 +10:00 committed by GitHub
parent ede8da2d65
commit b953e7d688
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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. 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: 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 ### 2. Tell Sieve which properties you'd like to sort/filter in your models