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