Method Descending
Descending<TDocument>(SortDefinition<TDocument>, FieldDefinition<TDocument>)
Combines an existing sort with an descending field.
public static SortDefinition<TDocument> Descending<TDocument>(this SortDefinition<TDocument> sort, FieldDefinition<TDocument> field)
Parameters
sort
SortDefinition<TDocument>The sort.
field
FieldDefinition<TDocument>The field.
Returns
- SortDefinition<TDocument>
A combined sort.
Type Parameters
TDocument
The type of the document.
Descending<TDocument>(SortDefinition<TDocument>, Expression<Func<TDocument, object>>)
Combines an existing sort with an descending field.
public static SortDefinition<TDocument> Descending<TDocument>(this SortDefinition<TDocument> sort, Expression<Func<TDocument, object>> field)
Parameters
sort
SortDefinition<TDocument>The sort.
field
Expression<Func<TDocument, object>>The field.
Returns
- SortDefinition<TDocument>
A combined sort.
Type Parameters
TDocument
The type of the document.