Class ExpressionAggregateExpressionDefinition<TSource, TResult>
A BsonValue based aggregate expression.
public sealed class ExpressionAggregateExpressionDefinition<TSource, TResult> : AggregateExpressionDefinition<TSource, TResult>
Type Parameters
TSource
The type of the source.
TResult
The type of the result.
- Inheritance
-
AggregateExpressionDefinition<TSource, TResult>ExpressionAggregateExpressionDefinition<TSource, TResult>
- Inherited Members
Constructors
ExpressionAggregateExpressionDefinition(Expression<Func<TSource, TResult>>, ExpressionTranslationOptions)
Initializes a new instance of the ExpressionAggregateExpressionDefinition<TSource, TResult> class.
public ExpressionAggregateExpressionDefinition(Expression<Func<TSource, TResult>> expression, ExpressionTranslationOptions translationOptions)
Parameters
expression
Expression<Func<TSource, TResult>>The expression.
translationOptions
ExpressionTranslationOptionsThe translation options.
- 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>