Class AggregateExpressionDefinition<TSource, TResult>
An aggregation expression.
public abstract class AggregateExpressionDefinition<TSource, TResult>
Type Parameters
TSource
The type of the source.
TResult
The type of the result.
- Inheritance
-
AggregateExpressionDefinition<TSource, TResult>
- Derived
- Inherited Members
Methods
Render(IBsonSerializer<TSource>, IBsonSerializerRegistry, LinqProvider)
Renders the aggregation expression.
public abstract 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.
Operators
implicit operator AggregateExpressionDefinition<TSource, TResult>(BsonValue)
Performs an implicit conversion from BsonValue to AggregateExpressionDefinition<TSource, TResult>.
public static implicit operator AggregateExpressionDefinition<TSource, TResult>(BsonValue expression)
Parameters
expression
BsonValueThe expression.
Returns
- AggregateExpressionDefinition<TSource, TResult>
The result of the conversion.
implicit operator AggregateExpressionDefinition<TSource, TResult>(string)
Performs an implicit conversion from string to AggregateExpressionDefinition<TSource, TResult>.
public static implicit operator AggregateExpressionDefinition<TSource, TResult>(string expression)
Parameters
expression
stringThe expression.
Returns
- AggregateExpressionDefinition<TSource, TResult>
The result of the conversion.