SelectExpression.AddToProjection 方法

定义

重载

AddToProjection(EntityProjectionExpression)

将给定 EntityProjectionExpression 添加到投影。

AddToProjection(SqlExpression)

将给定 SqlExpression 添加到投影。

AddToProjection(EntityProjectionExpression)

Source:
SelectExpression.cs
Source:
SelectExpression.cs
Source:
SelectExpression.cs

将给定 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)

参数

entityProjection
EntityProjectionExpression

要添加的实体投影。

返回

要 int 的 IProperty 字典,指示属性及其在投影列表中的相应索引。

适用于

AddToProjection(SqlExpression)

Source:
SelectExpression.cs
Source:
SelectExpression.cs
Source:
SelectExpression.cs
Source:
SelectExpression.cs
Source:
SelectExpression.cs
Source:
SelectExpression.cs
Source:
SelectExpression.cs

将给定 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

参数

sqlExpression
SqlExpression

要添加的表达式。

返回

一个 int 值,指示在投影列表中添加表达式的索引。

适用于