Method Aggregate
Aggregate(IMongoDatabase, AggregateOptions)
Begins a fluent aggregation interface.
public static IAggregateFluent<NoPipelineInput> Aggregate(this IMongoDatabase database, AggregateOptions options = null)
Parameters
database
IMongoDatabase The database.
options
AggregateOptions The options.
Returns
- IAggregate
Fluent <NoPipeline >Input A fluent aggregate interface.
Aggregate(IMongoDatabase, IClientSessionHandle, AggregateOptions)
Begins a fluent aggregation interface.
public static IAggregateFluent<NoPipelineInput> Aggregate(this IMongoDatabase database, IClientSessionHandle session, AggregateOptions options = null)
Parameters
database
IMongoDatabase The database.
session
IClientSession Handle The session.
options
AggregateOptions The options.
Returns
- IAggregate
Fluent <NoPipeline >Input A fluent aggregate interface.