Share via


SelectExpression.ApplyProjection Method

Definition

Overloads

ApplyProjection()

Adds expressions from projection mapping to projection ignoring the shaper expression. This method should only be used when populating projection in subquery.

ApplyProjection(Expression, ResultCardinality, QuerySplittingBehavior)

Adds expressions from projection mapping to projection and generate updated shaper expression for materialization.

ApplyProjection()

Adds expressions from projection mapping to projection ignoring the shaper expression. This method should only be used when populating projection in subquery.

public void ApplyProjection ();
member this.ApplyProjection : unit -> unit
Public Sub ApplyProjection ()

Applies to

ApplyProjection(Expression, ResultCardinality, QuerySplittingBehavior)

Adds expressions from projection mapping to projection and generate updated shaper expression for materialization.

public System.Linq.Expressions.Expression ApplyProjection (System.Linq.Expressions.Expression shaperExpression, Microsoft.EntityFrameworkCore.Query.ResultCardinality resultCardinality, Microsoft.EntityFrameworkCore.QuerySplittingBehavior querySplittingBehavior);
member this.ApplyProjection : System.Linq.Expressions.Expression * Microsoft.EntityFrameworkCore.Query.ResultCardinality * Microsoft.EntityFrameworkCore.QuerySplittingBehavior -> System.Linq.Expressions.Expression
Public Function ApplyProjection (shaperExpression As Expression, resultCardinality As ResultCardinality, querySplittingBehavior As QuerySplittingBehavior) As Expression

Parameters

shaperExpression
Expression

Current shaper expression which will shape results of this select expression.

resultCardinality
ResultCardinality

The result cardinality of this query expression.

querySplittingBehavior
QuerySplittingBehavior

The query splitting behavior to use when applying projection for nested collections.

Returns

Returns modified shaper expression to shape results of this select expression.

Applies to