C# Class MongoDB.Driver.Builders.IndexKeysBuilder

Inheritance: BuilderBase
Afficher le fichier Open project: CloudMetal/mongo-csharp-driver Class Usage Examples

Méthodes publiques

Méthode Description
Ascending ( ) : IndexKeysBuilder

Sets one or more key names to index in ascending order.

Descending ( ) : IndexKeysBuilder

Sets one or more key names to index in descending order.

GeoSpatial ( string name ) : IndexKeysBuilder

Sets the key name to create a geospatial index on.

GeoSpatialHaystack ( string name ) : IndexKeysBuilder

Sets the key name to create a geospatial haystack index on.

GeoSpatialHaystack ( string name, string additionalName ) : IndexKeysBuilder

Sets the key name and additional field name to create a geospatial haystack index on.

IndexKeysBuilder ( ) : System

Initializes a new instance of the IndexKeysBuilder class.

ToBsonDocument ( ) : BsonDocument

Returns the result of the builder as a BsonDocument.

Méthodes protégées

Méthode Description
Serialize ( BsonWriter bsonWriter, Type nominalType, IBsonSerializationOptions options ) : void

Serializes the result of the builder to a BsonWriter.

Method Details

Ascending() public méthode

Sets one or more key names to index in ascending order.
public Ascending ( ) : IndexKeysBuilder
Résultat IndexKeysBuilder

Descending() public méthode

Sets one or more key names to index in descending order.
public Descending ( ) : IndexKeysBuilder
Résultat IndexKeysBuilder

GeoSpatial() public méthode

Sets the key name to create a geospatial index on.
public GeoSpatial ( string name ) : IndexKeysBuilder
name string The key name.
Résultat IndexKeysBuilder

GeoSpatialHaystack() public méthode

Sets the key name to create a geospatial haystack index on.
public GeoSpatialHaystack ( string name ) : IndexKeysBuilder
name string The key name.
Résultat IndexKeysBuilder

GeoSpatialHaystack() public méthode

Sets the key name and additional field name to create a geospatial haystack index on.
public GeoSpatialHaystack ( string name, string additionalName ) : IndexKeysBuilder
name string The key name.
additionalName string The name of an additional field to index.
Résultat IndexKeysBuilder

IndexKeysBuilder() public méthode

Initializes a new instance of the IndexKeysBuilder class.
public IndexKeysBuilder ( ) : System
Résultat System

Serialize() protected méthode

Serializes the result of the builder to a BsonWriter.
protected Serialize ( BsonWriter bsonWriter, Type nominalType, IBsonSerializationOptions options ) : void
bsonWriter BsonWriter The writer.
nominalType System.Type The nominal type.
options IBsonSerializationOptions The serialization options.
Résultat void

ToBsonDocument() public méthode

Returns the result of the builder as a BsonDocument.
public ToBsonDocument ( ) : BsonDocument
Résultat BsonDocument