共用方式為


DbExpressionBuilder.Project(DbExpressionBinding, DbExpression) 方法

定義

建立新的 DbProjectExpression,這個運算式會對給定的輸入集,投影指定的運算式。

public static System.Data.Entity.Core.Common.CommandTrees.DbProjectExpression Project(this System.Data.Entity.Core.Common.CommandTrees.DbExpressionBinding input, System.Data.Entity.Core.Common.CommandTrees.DbExpression projection);
static member Project : System.Data.Entity.Core.Common.CommandTrees.DbExpressionBinding * System.Data.Entity.Core.Common.CommandTrees.DbExpression -> System.Data.Entity.Core.Common.CommandTrees.DbProjectExpression
<Extension()>
Public Function Project (input As DbExpressionBinding, projection As DbExpression) As DbProjectExpression

參數

input
DbExpressionBinding

指定輸入集的運算式繫結。

projection
DbExpression

要對集合投影的運算式。

傳回

表示投影作業的新 DbProjectExpression。

例外狀況

輸入或投影為 Null。

適用於