Class DocumentsAggregateExpressionDefinition<TDocument>
An aggregate expression for the $documents stage.
public sealed class DocumentsAggregateExpressionDefinition<TDocument> : AggregateExpressionDefinition<NoPipelineInput, IEnumerable<TDocument>>
Type Parameters
TDocument
The type of the documents.
- Inheritance
-
DocumentsAggregateExpressionDefinition<TDocument>
- Inherited Members
Constructors
DocumentsAggregateExpressionDefinition(IEnumerable<TDocument>, IBsonSerializer<TDocument>)
Initializes a new instance of the ExpressionAggregateExpressionDefinition<TSource, TResult> class.
public DocumentsAggregateExpressionDefinition(IEnumerable<TDocument> documents, IBsonSerializer<TDocument> documentSerializer = null)
Parameters
documents
IEnumerable<TDocument>The documents.
documentSerializer
IBsonSerializer<TDocument>The document serializer.
- See Also
-
AggregateExpressionDefinition<TSource, TResult>
Methods
Render(IBsonSerializer<NoPipelineInput>, IBsonSerializerRegistry, LinqProvider)
Renders the aggregation expression.
public override BsonValue Render(IBsonSerializer<NoPipelineInput> sourceSerializer, IBsonSerializerRegistry serializerRegistry, LinqProvider linqProvider)
Parameters
sourceSerializer
IBsonSerializer<NoPipelineInput>The source serializer.
serializerRegistry
IBsonSerializerRegistryThe serializer registry.
linqProvider
LinqProviderThe LINQ provider.
Returns
- BsonValue
The rendered aggregation expression.
- See Also
-
AggregateExpressionDefinition<TSource, TResult>
See Also
AggregateExpressionDefinition<TSource, TResult>