Method ThenByDescending
ThenByDescending<TDocument, TProjection>(IOrderedFindFluent<TDocument, TProjection>, Expression<Func<TDocument, object>>)
Adds a descending field to the existing sort.
public static IOrderedFindFluent<TDocument, TProjection> ThenByDescending<TDocument, TProjection>(this IOrderedFindFluent<TDocument, TProjection> find, Expression<Func<TDocument, object>> field)
Parameters
find
IOrderedFind <TDocument, TProjection>Fluent The fluent find.
field
Expression<Func<TDocument, object>>The field.
Returns
- IOrdered
Find <TDocument, TProjection>Fluent The fluent find interface.
Type Parameters
TDocument
The type of the document.
TProjection
The type of the projection (same as TDocument if there is no projection).