Class BsonValueAggregateExpressionDefinition<TSource, TResult>
A BsonValue based aggregate expression.
public sealed class BsonValueAggregateExpressionDefinition<TSource, TResult> : AggregateExpressionDefinition<TSource, TResult>
Type Parameters
TSource
The type of the source.
TResult
The type of the result.
- Inheritance
-
AggregateExpressionDefinition<TSource, TResult>BsonValueAggregateExpressionDefinition<TSource, TResult>
- Inherited Members
Constructors
BsonValueAggregateExpressionDefinition(BsonValue)
Initializes a new instance of the BsonValueAggregateExpressionDefinition<TSource, TResult> class.
public BsonValueAggregateExpressionDefinition(BsonValue expression)
Parameters
expression
BsonValueThe expression.
- See Also
-
AggregateExpressionDefinition<TSource, TResult>
Methods
Render(IBsonSerializer<TSource>, IBsonSerializerRegistry, LinqProvider)
Renders the aggregation expression.
public override BsonValue Render(IBsonSerializer<TSource> sourceSerializer, IBsonSerializerRegistry serializerRegistry, LinqProvider linqProvider)
Parameters
sourceSerializer
IBsonSerializer<TSource>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>