SelectExpression.AddToProjection Methode

Definition

Überlädt

AddToProjection(EntityProjectionExpression)

Fügt der Projektion hinzu EntityProjectionExpression .

AddToProjection(SqlExpression)

Fügt der Projektion hinzu SqlExpression .

AddToProjection(EntityProjectionExpression)

Fügt der Projektion hinzu EntityProjectionExpression .

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)

Parameter

entityProjection
EntityProjectionExpression

Eine hinzuzufügende Entitätsprojektion.

Gibt zurück

Ein Wörterbuch von IProperty to int, das Eigenschaften und die entsprechenden Indizes in der Projektionsliste angibt.

Gilt für:

AddToProjection(SqlExpression)

Fügt der Projektion hinzu SqlExpression .

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

Parameter

sqlExpression
SqlExpression

Ein hinzuzufügenden Ausdruck.

Gibt zurück

Ein int-Wert, der den Index angibt, an dem der Ausdruck in der Projektionsliste hinzugefügt wurde.

Gilt für: