Delen via


SelectExpression.AddToProjection Method

Definition

Overloads

AddToProjection(AliasExpression)

Adds an AliasExpression to the projection.

AddToProjection(ColumnExpression)

Adds a ColumnExpression to the projection.

AddToProjection(Expression)

Adds an expression to the projection.

AddToProjection(IProperty, IQuerySource)

Adds a column to the projection.

AddToProjection(Expression, Boolean)

Adds an expression to the projection.

AddToProjection(String, IProperty, IQuerySource)

Adds a column to the projection.

AddToProjection(AliasExpression)

Adds an AliasExpression to the projection.

public virtual int AddToProjection (Microsoft.EntityFrameworkCore.Query.Expressions.AliasExpression aliasExpression);
abstract member AddToProjection : Microsoft.EntityFrameworkCore.Query.Expressions.AliasExpression -> int
override this.AddToProjection : Microsoft.EntityFrameworkCore.Query.Expressions.AliasExpression -> int
Public Overridable Function AddToProjection (aliasExpression As AliasExpression) As Integer

Parameters

aliasExpression
AliasExpression

The alias expression.

Returns

The corresponding index of the added expression in Projection.

Applies to

AddToProjection(ColumnExpression)

Adds a ColumnExpression to the projection.

public virtual int AddToProjection (Microsoft.EntityFrameworkCore.Query.Expressions.ColumnExpression columnExpression);
abstract member AddToProjection : Microsoft.EntityFrameworkCore.Query.Expressions.ColumnExpression -> int
override this.AddToProjection : Microsoft.EntityFrameworkCore.Query.Expressions.ColumnExpression -> int
Public Overridable Function AddToProjection (columnExpression As ColumnExpression) As Integer

Parameters

columnExpression
ColumnExpression

The column expression.

Returns

The corresponding index of the added expression in Projection.

Applies to

AddToProjection(Expression)

Adds an expression to the projection.

public virtual int AddToProjection (System.Linq.Expressions.Expression expression);
abstract member AddToProjection : System.Linq.Expressions.Expression -> int
override this.AddToProjection : System.Linq.Expressions.Expression -> int
Public Overridable Function AddToProjection (expression As Expression) As Integer

Parameters

expression
Expression

The expression.

Returns

The corresponding index of the added expression in Projection.

Applies to

AddToProjection(IProperty, IQuerySource)

Adds a column to the projection.

public virtual int AddToProjection (Microsoft.EntityFrameworkCore.Metadata.IProperty property, Remotion.Linq.Clauses.IQuerySource querySource);
abstract member AddToProjection : Microsoft.EntityFrameworkCore.Metadata.IProperty * Remotion.Linq.Clauses.IQuerySource -> int
override this.AddToProjection : Microsoft.EntityFrameworkCore.Metadata.IProperty * Remotion.Linq.Clauses.IQuerySource -> int
Public Overridable Function AddToProjection (property As IProperty, querySource As IQuerySource) As Integer

Parameters

property
IProperty

The corresponding EF property.

querySource
Remotion.Linq.Clauses.IQuerySource

The originating query source.

Returns

The corresponding index of the added expression in Projection.

Applies to

AddToProjection(Expression, Boolean)

Adds an expression to the projection.

public virtual int AddToProjection (System.Linq.Expressions.Expression expression, bool resetProjectStar);
public virtual int AddToProjection (System.Linq.Expressions.Expression expression, bool resetProjectStar = true);
abstract member AddToProjection : System.Linq.Expressions.Expression * bool -> int
override this.AddToProjection : System.Linq.Expressions.Expression * bool -> int
Public Overridable Function AddToProjection (expression As Expression, resetProjectStar As Boolean) As Integer
Public Overridable Function AddToProjection (expression As Expression, Optional resetProjectStar As Boolean = true) As Integer

Parameters

expression
Expression

The expression.

resetProjectStar
Boolean

true to reset the value of IsProjectStar.

Returns

The corresponding index of the added expression in Projection.

Applies to

AddToProjection(String, IProperty, IQuerySource)

Adds a column to the projection.

public virtual int AddToProjection (string column, Microsoft.EntityFrameworkCore.Metadata.IProperty property, Remotion.Linq.Clauses.IQuerySource querySource);
abstract member AddToProjection : string * Microsoft.EntityFrameworkCore.Metadata.IProperty * Remotion.Linq.Clauses.IQuerySource -> int
override this.AddToProjection : string * Microsoft.EntityFrameworkCore.Metadata.IProperty * Remotion.Linq.Clauses.IQuerySource -> int
Public Overridable Function AddToProjection (column As String, property As IProperty, querySource As IQuerySource) As Integer

Parameters

column
String

The column name.

property
IProperty

The corresponding EF property.

querySource
Remotion.Linq.Clauses.IQuerySource

The originating query source.

Returns

The corresponding index of the added expression in Projection.

Applies to