Click or drag to resize

IndexKeysDefinitionBuilder<TDocument> Methods

The IndexKeysDefinitionBuilder< TDocument> generic type exposes the following members.

Methods
  NameDescription
Public methodAscending(Expression<Func<TDocument, Object>>)
Creates an ascending index key definition.
Public methodAscending(FieldDefinition<TDocument>)
Creates an ascending index key definition.
Public methodCombine(IndexKeysDefinition<TDocument>[])
Creates a combined index keys definition.
Public methodCombine(IEnumerable<IndexKeysDefinition<TDocument>>)
Creates a combined index keys definition.
Public methodDescending(Expression<Func<TDocument, Object>>)
Creates a descending index key definition.
Public methodDescending(FieldDefinition<TDocument>)
Creates a descending index key definition.
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Public methodGeo2D(Expression<Func<TDocument, Object>>)
Creates a 2d index key definition.
Public methodGeo2D(FieldDefinition<TDocument>)
Creates a 2d index key definition.
Public methodGeo2DSphere(Expression<Func<TDocument, Object>>)
Creates a 2dsphere index key definition.
Public methodGeo2DSphere(FieldDefinition<TDocument>)
Creates a 2dsphere index key definition.
Public methodGeoHaystack(Expression<Func<TDocument, Object>>, Expression<Func<TDocument, Object>>)
Creates a geo haystack index key definition.
Public methodGeoHaystack(FieldDefinition<TDocument>, FieldDefinition<TDocument>)
Creates a geo haystack index key definition.
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodHashed(Expression<Func<TDocument, Object>>)
Creates a hashed index key definition.
Public methodHashed(FieldDefinition<TDocument>)
Creates a hashed index key definition.
Public methodText(Expression<Func<TDocument, Object>>)
Creates a text index key definition.
Public methodText(FieldDefinition<TDocument>)
Creates a text index key definition.
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Top
Extension Methods
  NameDescription
Public Extension MethodToBson
Serializes an object to a BSON byte array.
(Defined by BsonExtensionMethods.)
Public Extension MethodToBsonDocument
Serializes an object to a BsonDocument.
(Defined by BsonExtensionMethods.)
Public Extension MethodToJson
Serializes an object to a JSON string.
(Defined by BsonExtensionMethods.)
Top
See Also