Table of Contents

Class DocumentsAggregateExpressionDefinition<TDocument>

Namespace
MongoDB.Driver
Assembly
MongoDB.Driver.dll

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

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 IBsonSerializerRegistry

The serializer registry.

linqProvider LinqProvider

The LINQ provider.

Returns

BsonValue

The rendered aggregation expression.

See Also

See Also

AggregateExpressionDefinition<TSource, TResult>