Table of Contents

Method Ascending

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

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

Adds keys to be sorted by in ascending order.

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

Parameters

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

The member expressions indicating which elements to sort by.

Returns

SortByBuilder<TDocument>

The builder (so method calls can be chained).