C# Class MongoDB.Driver.Builders.SortByBuilder

Inheritance: BuilderBase, IMongoSortBy
Mostra file Open project: CloudMetal/mongo-csharp-driver Class Usage Examples

Public Methods

Method Description
Ascending ( ) : SortByBuilder

Adds keys to be sorted by in ascending order.

Descending ( ) : SortByBuilder

Adds keys to be sorted by in descending order.

SortByBuilder ( ) : System

Initializes a new instance of the SortByBuider class.

ToBsonDocument ( ) : BsonDocument

Returns the result of the builder as a BsonDocument.

Protected Methods

Method Description
Serialize ( BsonWriter bsonWriter, Type nominalType, IBsonSerializationOptions options ) : void

Serializes the result of the builder to a BsonWriter.

Method Details

Ascending() public method

Adds keys to be sorted by in ascending order.
public Ascending ( ) : SortByBuilder
return SortByBuilder

Descending() public method

Adds keys to be sorted by in descending order.
public Descending ( ) : SortByBuilder
return SortByBuilder

Serialize() protected method

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.
return void

SortByBuilder() public method

Initializes a new instance of the SortByBuider class.
public SortByBuilder ( ) : System
return System

ToBsonDocument() public method

Returns the result of the builder as a BsonDocument.
public ToBsonDocument ( ) : BsonDocument
return BsonDocument