Class FindExpressionProjectionDefinition<TSource, TProjection>
A find Expression based projection.
public sealed class FindExpressionProjectionDefinition<TSource, TProjection> : ProjectionDefinition<TSource, TProjection>
Type Parameters
TSource
The type of the source.
TProjection
The type of the projection.
- Inheritance
-
ProjectionDefinition<TSource, TProjection>FindExpressionProjectionDefinition<TSource, TProjection>
- Inherited Members
Constructors
FindExpressionProjectionDefinition(Expression<Func<TSource, TProjection>>)
Initializes a new instance of the FindExpressionProjectionDefinition<TSource, TProjection> class.
public FindExpressionProjectionDefinition(Expression<Func<TSource, TProjection>> expression)
Parameters
expression
Expression<Func<TSource, TProjection>>The expression.
Properties
Expression
Gets the expression.
public Expression<Func<TSource, TProjection>> Expression { get; }
Property Value
- Expression<Func<TSource, TProjection>>
Methods
Render(IBsonSerializer<TSource>, IBsonSerializerRegistry, LinqProvider)
Renders the projection to a RenderedProjectionDefinition<TProjection>.
public override RenderedProjectionDefinition<TProjection> Render(IBsonSerializer<TSource> sourceSerializer, IBsonSerializerRegistry serializerRegistry, LinqProvider linqProvider)
Parameters
sourceSerializer
IBsonSerializer<TSource>The source serializer.
serializerRegistry
IBsonSerializerRegistryThe serializer registry.
linqProvider
LinqProviderThe LINQ provider.