Click or drag to resize

IAggregateFluentExtensions Class

Inheritance Hierarchy
System.Object
  MongoDB.Driver.IAggregateFluentExtensions

Namespace:  MongoDB.Driver
Assembly:  MongoDB.Driver (in MongoDB.Driver.dll) Version: 2.14.0+2b37a1fe1cbdbe1a020b52b77f1197b6d77575e7
Syntax
public static class IAggregateFluentExtensions

The IAggregateFluentExtensions type exposes the following members.

Methods
  NameDescription
Public methodStatic memberBucket<TResult, TValue>(IAggregateFluent<TResult>, Expression<Func<TResult, TValue>>, IEnumerable<TValue>, AggregateBucketOptions<TValue>)
Appends a $bucket stage to the pipeline.
Public methodStatic memberBucket<TResult, TValue, TNewResult>(IAggregateFluent<TResult>, Expression<Func<TResult, TValue>>, IEnumerable<TValue>, Expression<Func<IGrouping<TValue, TResult>, TNewResult>>, AggregateBucketOptions<TValue>)
Appends a $bucket stage to the pipeline.
Public methodStatic memberBucketAuto<TResult, TValue>(IAggregateFluent<TResult>, Expression<Func<TResult, TValue>>, Int32, AggregateBucketAutoOptions)
Appends a $bucketAuto stage to the pipeline.
Public methodStatic memberBucketAuto<TResult, TValue, TNewResult>(IAggregateFluent<TResult>, Expression<Func<TResult, TValue>>, Int32, Expression<Func<IGrouping<TValue, TResult>, TNewResult>>, AggregateBucketAutoOptions)
Appends a $bucketAuto stage to the pipeline.
Public methodStatic memberFacet<TResult>(IAggregateFluent<TResult>,AggregateFacet<TResult>[])
Appends a $facet stage to the pipeline.
Public methodStatic memberFacet<TResult>(IAggregateFluent<TResult>, IEnumerable<AggregateFacet<TResult>>)
Appends a $facet stage to the pipeline.
Public methodStatic memberFacet<TResult, TNewResult>(IAggregateFluent<TResult>,AggregateFacet<TResult>[])
Appends a $facet stage to the pipeline.
Public methodStatic memberFirst<TResult>
Returns the first document of the aggregate result.
Public methodStatic memberFirstAsync<TResult>
Returns the first document of the aggregate result.
Public methodStatic memberFirstOrDefault<TResult>
Returns the first document of the aggregate result, or the default value if the result set is empty.
Public methodStatic memberFirstOrDefaultAsync<TResult>
Returns the first document of the aggregate result, or the default value if the result set is empty.
Public methodStatic memberGraphLookup<TResult, TFrom>(IAggregateFluent<TResult>, IMongoCollection<TFrom>, FieldDefinition<TFrom, BsonValue>, FieldDefinition<TFrom, BsonValue>, AggregateExpressionDefinition<TResult, BsonValue>, FieldDefinition<BsonDocument, IEnumerable<BsonDocument>>, FieldDefinition<BsonDocument, Int32>)
Appends a $graphLookup stage to the pipeline.
Public methodStatic memberGraphLookup<TResult, TFrom, TConnectFrom, TConnectTo, TStartWith, TAs, TNewResult>(IAggregateFluent<TResult>, IMongoCollection<TFrom>, FieldDefinition<TFrom, TConnectFrom>, FieldDefinition<TFrom, TConnectTo>, AggregateExpressionDefinition<TResult, TStartWith>, FieldDefinition<TNewResult, TAs>, AggregateGraphLookupOptions<TFrom, TFrom, TNewResult>)
Appends a $graphLookup stage to the pipeline.
Public methodStatic memberGraphLookup<TResult, TFrom, TConnectFrom, TConnectTo, TStartWith, TAs, TNewResult>(IAggregateFluent<TResult>, IMongoCollection<TFrom>, Expression<Func<TFrom, TConnectFrom>>, Expression<Func<TFrom, TConnectTo>>, Expression<Func<TResult, TStartWith>>, Expression<Func<TNewResult, TAs>>, AggregateGraphLookupOptions<TFrom, TFrom, TNewResult>)
Appends a $graphLookup stage to the pipeline.
Public methodStatic memberGraphLookup<TResult, TFrom, TConnectFrom, TConnectTo, TStartWith, TAsElement, TAs, TNewResult>(IAggregateFluent<TResult>, IMongoCollection<TFrom>, Expression<Func<TFrom, TConnectFrom>>, Expression<Func<TFrom, TConnectTo>>, Expression<Func<TResult, TStartWith>>, Expression<Func<TNewResult, TAs>>, Expression<Func<TAsElement, Int32>>, AggregateGraphLookupOptions<TFrom, TAsElement, TNewResult>)
Appends a $graphLookup stage to the pipeline.
Public methodStatic memberGroup<TResult>(IAggregateFluent<TResult>, ProjectionDefinition<TResult, BsonDocument>)
Appends a group stage to the pipeline.
Public methodStatic memberGroup<TResult, TKey, TNewResult>(IAggregateFluent<TResult>, Expression<Func<TResult, TKey>>, Expression<Func<IGrouping<TKey, TResult>, TNewResult>>)
Appends a group stage to the pipeline.
Public methodStatic memberLookup<TResult>(IAggregateFluent<TResult>, IMongoCollection<BsonDocument>, BsonDocument, PipelineDefinition<BsonDocument, BsonDocument>, FieldDefinition<BsonDocument, IEnumerable<BsonDocument>>)
Appends a lookup stage to the pipeline.
Public methodStatic memberLookup<TResult>(IAggregateFluent<TResult>, String, FieldDefinition<TResult>, FieldDefinition<BsonDocument>, FieldDefinition<BsonDocument>)
Appends a lookup stage to the pipeline.
Public methodStatic memberLookup<TResult, TForeignDocument, TNewResult>(IAggregateFluent<TResult>, IMongoCollection<TForeignDocument>, Expression<Func<TResult, Object>>, Expression<Func<TForeignDocument, Object>>, Expression<Func<TNewResult, Object>>, AggregateLookupOptions<TForeignDocument, TNewResult>)
Appends a lookup stage to the pipeline.
Public methodStatic memberLookup<TResult, TForeignDocument, TAsElement, TAs, TNewResult>(IAggregateFluent<TResult>, IMongoCollection<TForeignDocument>, BsonDocument, PipelineDefinition<TForeignDocument, TAsElement>, Expression<Func<TNewResult, TAs>>, AggregateLookupOptions<TForeignDocument, TNewResult>)
Appends a lookup stage to the pipeline.
Public methodStatic memberMatch<TResult>
Appends a match stage to the pipeline.
Public methodStatic memberProject<TResult>(IAggregateFluent<TResult>, ProjectionDefinition<TResult, BsonDocument>)
Appends a project stage to the pipeline.
Public methodStatic memberProject<TResult, TNewResult>(IAggregateFluent<TResult>, Expression<Func<TResult, TNewResult>>)
Appends a project stage to the pipeline.
Public methodStatic memberReplaceRoot<TResult, TNewResult>
Appends a $replaceRoot stage to the pipeline.
Public methodStatic memberReplaceWith<TResult, TNewResult>
Appends a $replaceWith stage to the pipeline.
Public methodStatic memberSingle<TResult>
Returns the only document of the aggregate result. Throws an exception if the result set does not contain exactly one document.
Public methodStatic memberSingleAsync<TResult>
Returns the only document of the aggregate result. Throws an exception if the result set does not contain exactly one document.
Public methodStatic memberSingleOrDefault<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.
Public methodStatic memberSingleOrDefaultAsync<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.
Public methodStatic memberSortBy<TResult>
Appends an ascending sort stage to the pipeline.
Public methodStatic memberSortByCount<TResult, TKey>
Appends a sortByCount stage to the pipeline.
Public methodStatic memberSortByDescending<TResult>
Appends a descending sort stage to the pipeline.
Public methodStatic memberThenBy<TResult>
Modifies the current sort stage by appending an ascending field specification to it.
Public methodStatic memberThenByDescending<TResult>
Modifies the current sort stage by appending a descending field specification to it.
Public methodStatic memberUnwind<TResult>(IAggregateFluent<TResult>, FieldDefinition<TResult>)
Appends an unwind stage to the pipeline.
Public methodStatic memberUnwind<TResult>(IAggregateFluent<TResult>, Expression<Func<TResult, Object>>)
Appends an unwind stage to the pipeline.
Public methodStatic memberUnwind<TResult, TNewResult>(IAggregateFluent<TResult>, Expression<Func<TResult, Object>>, IBsonSerializer<TNewResult>) Obsolete.
Appends an unwind stage to the pipeline.
Public methodStatic memberUnwind<TResult, TNewResult>(IAggregateFluent<TResult>, Expression<Func<TResult, Object>>, AggregateUnwindOptions<TNewResult>)
Appends an unwind stage to the pipeline.
Top
See Also