SelectExpression.AddToProjection Method

Definition

Overloads

AddToProjection(EntityProjectionExpression)

Adds given EntityProjectionExpression to the projection.

AddToProjection(SqlExpression)

Adds given SqlExpression to the projection.

AddToProjection(EntityProjectionExpression)

Adds given EntityProjectionExpression to the projection.

public System.Collections.Generic.IDictionary<Microsoft.EntityFrameworkCore.Metadata.IProperty,int> AddToProjection (Microsoft.EntityFrameworkCore.Query.EntityProjectionExpression entityProjection);
member this.AddToProjection : Microsoft.EntityFrameworkCore.Query.EntityProjectionExpression -> System.Collections.Generic.IDictionary<Microsoft.EntityFrameworkCore.Metadata.IProperty, int>
Public Function AddToProjection (entityProjection As EntityProjectionExpression) As IDictionary(Of IProperty, Integer)

Parameters

entityProjection
EntityProjectionExpression

An entity projection to add.

Returns

A dictionary of IProperty to int indicating properties and their corresponding indexes in the projection list.

Applies to

AddToProjection(SqlExpression)

Adds given SqlExpression to the projection.

public int AddToProjection (Microsoft.EntityFrameworkCore.Query.SqlExpressions.SqlExpression sqlExpression);
member this.AddToProjection : Microsoft.EntityFrameworkCore.Query.SqlExpressions.SqlExpression -> int
Public Function AddToProjection (sqlExpression As SqlExpression) As Integer

Parameters

sqlExpression
SqlExpression

An expression to add.

Returns

An int value indicating the index at which the expression was added in the projection list.

Applies to