Partager via


SelectExpression.AddToProjection Méthode

Définition

Surcharges

AddToProjection(EntityProjectionExpression)

Ajoute donné EntityProjectionExpression à la projection.

AddToProjection(SqlExpression)

Ajoute donné SqlExpression à la projection.

AddToProjection(EntityProjectionExpression)

Ajoute donné EntityProjectionExpression à la 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)

Paramètres

entityProjection
EntityProjectionExpression

Projection d’entité à ajouter.

Retours

Dictionnaire de à int indiquant les propriétés et leurs index correspondants dans la liste de IProperty projection.

S’applique à

AddToProjection(SqlExpression)

Ajoute donné SqlExpression à la 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

Paramètres

sqlExpression
SqlExpression

Expression à ajouter.

Retours

Valeur int indiquant l’index auquel l’expression a été ajoutée dans la liste de projection.

S’applique à