Method Expression
Expression<TProjection>(Expression<Func<TSource, TProjection>>)
Creates a projection based on the expression.
public ProjectionDefinition<TSource, TProjection> Expression<TProjection>(Expression<Func<TSource, TProjection>> expression)
Parameters
expression
Expression<Func<TSource, TProjection>>The expression.
Returns
- ProjectionDefinition<TSource, TProjection>
An expression projection.
Type Parameters
TProjection
The type of the result.