SortDefinitionBuilder<TDocument> Class |
Namespace: MongoDB.Driver
The SortDefinitionBuilder<TDocument> type exposes the following members.
Name | Description | |
---|---|---|
![]() | SortDefinitionBuilder<TDocument> | Initializes a new instance of the SortDefinitionBuilder<TDocument> class |
Name | Description | |
---|---|---|
![]() | Ascending(Expression<Func<TDocument, Object>>) |
Creates an ascending sort.
|
![]() | Ascending(FieldDefinition<TDocument>) |
Creates an ascending sort.
|
![]() | Combine(SortDefinition<TDocument>[]) |
Creates a combined sort.
|
![]() | Combine(IEnumerable<SortDefinition<TDocument>>) |
Creates a combined sort.
|
![]() | Descending(Expression<Func<TDocument, Object>>) |
Creates a descending sort.
|
![]() | Descending(FieldDefinition<TDocument>) |
Creates a descending sort.
|
![]() | Equals | Determines whether the specified object is equal to the current object. (Inherited from Object.) |
![]() | GetHashCode | Serves as the default hash function. (Inherited from Object.) |
![]() | GetType | Gets the Type of the current instance. (Inherited from Object.) |
![]() | MetaTextScore |
Creates a descending sort on the computed relevance score of a text search.
The name of the key should be the name of the projected relevence score field.
|
![]() | ToString | Returns a string that represents the current object. (Inherited from Object.) |
Name | Description | |
---|---|---|
![]() | ToBson |
Serializes an object to a BSON byte array.
(Defined by BsonExtensionMethods.) |
![]() | ToBsonDocument |
Serializes an object to a BsonDocument.
(Defined by BsonExtensionMethods.) |
![]() | ToJson |
Serializes an object to a JSON string.
(Defined by BsonExtensionMethods.) |