Click or drag to resize
IOrderedAggregateFluent<TResult> Interface
Fluent interface for aggregate.

Namespace: MongoDB.Driver
Assembly: MongoDB.Driver (in MongoDB.Driver.dll) Version: 2.0.1
Syntax
public interface IOrderedAggregateFluent<TResult> : IAggregateFluent<TResult>, 
	IAsyncCursorSource<TResult>

Type Parameters

TResult
The type of the result.

The IOrderedAggregateFluent< TResult> type exposes the following members.

Methods
  NameDescription
Public methodAppendStage<TNewResult>
Appends the stage to the pipeline.
(Inherited from IAggregateFluent<TResult>.)
Public methodGroup<TNewResult>
Appends a group stage to the stages.
(Inherited from IAggregateFluent<TResult>.)
Public methodLimit
Appends a limit stage to the pipeline.
(Inherited from IAggregateFluent<TResult>.)
Public methodMatch
Appends a match stage to the pipeline.
(Inherited from IAggregateFluent<TResult>.)
Public methodOutAsync
Appends an out stage to the pipeline and executes it, and then returns a cursor to read the contents of the output collection.
(Inherited from IAggregateFluent<TResult>.)
Public methodProject<TNewResult>
Appends a project stage to the pipeline.
(Inherited from IAggregateFluent<TResult>.)
Public methodSkip
Appends a skip stage to the pipeline.
(Inherited from IAggregateFluent<TResult>.)
Public methodSort
Appends a sort stage to the pipeline.
(Inherited from IAggregateFluent<TResult>.)
Public methodToCursorAsync
Executes the operation and returns a cursor to the results.
(Inherited from IAsyncCursorSource<TDocument>.)
Public methodUnwind<TNewResult>
Appends an unwind stage to the pipeline.
(Inherited from IAggregateFluent<TResult>.)
Top
Extension Methods
  NameDescription
Public Extension MethodFirstAsync<TResult>
Returns the first document of the aggregate result.
(Defined by IAggregateFluentExtensions.)
Public Extension MethodFirstOrDefaultAsync<TResult>
Returns the first document of the aggregate result, or the default value if the result set is empty.
(Defined by IAggregateFluentExtensions.)
Public Extension MethodForEachAsync<TResult>(Func<TResult, Task>, CancellationToken)Overloaded.
Calls a delegate for each document returned by the cursor.
(Defined by IAsyncCursorSourceExtensions.)
Public Extension MethodForEachAsync<TResult>(Func<TResult, Int32, Task>, CancellationToken)Overloaded.
Calls a delegate for each document returned by the cursor.
(Defined by IAsyncCursorSourceExtensions.)
Public Extension MethodForEachAsync<TResult>(Action<TResult>, CancellationToken)Overloaded.
Calls a delegate for each document returned by the cursor.
(Defined by IAsyncCursorSourceExtensions.)
Public Extension MethodForEachAsync<TResult>(Action<TResult, Int32>, CancellationToken)Overloaded.
Calls a delegate for each document returned by the cursor.
(Defined by IAsyncCursorSourceExtensions.)
Public Extension MethodGroup<TResult>(ProjectionDefinition<TResult, BsonDocument>)Overloaded.
Appends a group stage to the pipeline.
(Defined by IAggregateFluentExtensions.)
Public Extension MethodGroup<TResult, TKey, TNewResult>(Expression<Func<TResult, TKey>>, Expression<Func<IGrouping<TKey, TResult>, TNewResult>>)Overloaded.
Appends a group stage to the pipeline.
(Defined by IAggregateFluentExtensions.)
Public Extension MethodMatch<TResult>
Appends a match stage to the pipeline.
(Defined by IAggregateFluentExtensions.)
Public Extension MethodProject<TResult>(ProjectionDefinition<TResult, BsonDocument>)Overloaded.
Appends a project stage to the pipeline.
(Defined by IAggregateFluentExtensions.)
Public Extension MethodProject<TResult, TNewResult>(Expression<Func<TResult, TNewResult>>)Overloaded.
Appends a project stage to the pipeline.
(Defined by IAggregateFluentExtensions.)
Public Extension MethodSingleAsync<TResult>
Returns the only document of the aggregate result. Throws an exception if the result set does not contain exactly one document.
(Defined by IAggregateFluentExtensions.)
Public Extension MethodSingleOrDefaultAsync<TResult>
Returns the only document of the aggregate result, or the default value if the result set is empty. Throws an exception if the result set contains more than one document.
(Defined by IAggregateFluentExtensions.)
Public Extension MethodSortBy<TResult>
Appends an ascending sort stage to the pipeline.
(Defined by IAggregateFluentExtensions.)
Public Extension MethodSortByDescending<TResult>
Appends a descending sort stage to the pipeline.
(Defined by IAggregateFluentExtensions.)
Public Extension MethodThenBy<TResult>
Modifies the current sort stage by appending an ascending field specification to it.
(Defined by IAggregateFluentExtensions.)
Public Extension MethodThenByDescending<TResult>
Modifies the current sort stage by appending a descending field specification to it.
(Defined by IAggregateFluentExtensions.)
Public Extension MethodToListAsync<TResult>
Returns a list containing all the documents returned by the cursor returned by a cursor source.
(Defined by IAsyncCursorSourceExtensions.)
Public Extension MethodUnwind<TResult>(Expression<Func<TResult, Object>>)Overloaded.
Appends an unwind stage to the pipeline.
(Defined by IAggregateFluentExtensions.)
Public Extension MethodUnwind<TResult>(FieldDefinition<TResult>)Overloaded.
Appends an unwind stage to the pipeline.
(Defined by IAggregateFluentExtensions.)
Public Extension MethodUnwind<TResult, TNewResult>(Expression<Func<TResult, Object>>, IBsonSerializer<TNewResult>)Overloaded.
Appends an unwind stage to the pipeline.
(Defined by IAggregateFluentExtensions.)
Top
Properties
See Also