Table of Contents

Method Ascending

Namespace
MongoDB.Driver.Builders
Assembly
MongoDB.Driver.Legacy.dll

Ascending(params Expression<Func<TDocument, object>>[])

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

public IndexKeysBuilder<TDocument> Ascending(params Expression<Func<TDocument, object>>[] memberExpressions)

Parameters

memberExpressions Expression<Func<TDocument, object>>[]

One or more key names.

Returns

IndexKeysBuilder<TDocument>

The builder (so method calls can be chained).