mirror of
https://github.com/Biarity/Sieve.git
synced 2024-11-22 13:32:33 +01:00
Update README.md
This commit is contained in:
parent
fd56ceadd9
commit
ad673842b1
@ -40,6 +40,8 @@ public DateTimeOffset DateCreated { get; set; } = DateTimeOffset.UtcNow;
|
|||||||
```
|
```
|
||||||
There is also the `Name` parameter that you can use to have a different name for use by clients.
|
There is also the `Name` parameter that you can use to have a different name for use by clients.
|
||||||
|
|
||||||
|
Alternatively, you can use Fluent API to do the same. This is especially useful if you don't want to use attributes or have multiple APIs. [More on Sieve's Fluent API here](https://github.com/Biarity/Sieve/issues/4#issuecomment-364629048).
|
||||||
|
|
||||||
### 3. Get sort/filter/page queries by using the Sieve model in your controllers
|
### 3. Get sort/filter/page queries by using the Sieve model in your controllers
|
||||||
|
|
||||||
In the action that handles returning Posts, use `SieveModel` to get the sort/filter/page query.
|
In the action that handles returning Posts, use `SieveModel` to get the sort/filter/page query.
|
||||||
|
Loading…
Reference in New Issue
Block a user