Method Descending
Descending(FieldDefinition<TDocument>)
Creates a descending sort.
public SortDefinition<TDocument> Descending(FieldDefinition<TDocument> field)
Parameters
field
FieldDefinition<TDocument>The field.
Returns
- SortDefinition<TDocument>
A descending sort.
Descending(Expression<Func<TDocument, object>>)
Creates a descending sort.
public SortDefinition<TDocument> Descending(Expression<Func<TDocument, object>> field)
Parameters
field
Expression<Func<TDocument, object>>The field.
Returns
- SortDefinition<TDocument>
A descending sort.