Update README.md

This commit is contained in:
Biarity 2018-02-10 11:29:56 +10:00 committed by GitHub
parent b52362e2bc
commit ec36b956ad
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -34,11 +34,11 @@ public int LikeCount { get; set; }
[Sieve(CanFilter = true, CanSort = true)] [Sieve(CanFilter = true, CanSort = true)]
public int CommentCount { get; set; } public int CommentCount { get; set; }
[Sieve(CanFilter = true, CanSort = true, name = "created")] [Sieve(CanFilter = true, CanSort = true, Name = "created")]
public DateTimeOffset DateCreated { get; set; } = DateTimeOffset.UtcNow; 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.
### 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