DbExpressionBuilder.OuterApply 方法

定義

建立新的 DbApplyExpression,這個運算式會針對給定輸入集的每個項目,評估給定的 apply 運算式一次,產生具有對應的輸入和適用資料行的資料列集合。

多載

OuterApply(DbExpression, Func<DbExpression,KeyValuePair<String,DbExpression>>)

建立新的 DbApplyExpression,這個運算式會針對給定輸入集的每個項目,評估給定的 apply 運算式一次,產生具有對應的輸入和適用資料行的資料列集合。 apply 評估為空集合的資料列,其 apply 資料行值為 null

OuterApply(DbExpressionBinding, DbExpressionBinding)

建立新的 DbApplyExpression,這個運算式會針對給定輸入集的每個項目,評估給定的 apply 運算式一次,產生具有對應的輸入和適用資料行的資料列集合。 apply 評估為空集合的資料列,其 apply 資料行值為 null

OuterApply(DbExpression, Func<DbExpression,KeyValuePair<String,DbExpression>>)

建立新的 DbApplyExpression,這個運算式會針對給定輸入集的每個項目,評估給定的 apply 運算式一次,產生具有對應的輸入和適用資料行的資料列集合。 apply 評估為空集合的資料列,其 apply 資料行值為 null

C#
public static System.Data.Common.CommandTrees.DbApplyExpression OuterApply (this System.Data.Common.CommandTrees.DbExpression source, Func<System.Data.Common.CommandTrees.DbExpression,System.Collections.Generic.KeyValuePair<string,System.Data.Common.CommandTrees.DbExpression>> apply);

參數

source
DbExpression

指定輸入集的 DbExpression

apply
Func<DbExpression,KeyValuePair<String,DbExpression>>

方法,指定要針對輸入集中每個成員進行一次評估的邏輯。

傳回

具有指定之輸入及套用繫結與 OuterApply 之 DbExpressionKind 的新 DbApplyExpression。

例外狀況

sourceapply 為 null。

-或-

apply 的結果包含為 null 的名稱或運算式。

Source 沒有集合結果類型。

-或-

apply 的結果包含在運算式繫結中為無效的名稱或運算式。

適用於

.NET Framework 4.8.1 和其他版本
產品 版本
.NET Framework 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1

OuterApply(DbExpressionBinding, DbExpressionBinding)

建立新的 DbApplyExpression,這個運算式會針對給定輸入集的每個項目,評估給定的 apply 運算式一次,產生具有對應的輸入和適用資料行的資料列集合。 apply 評估為空集合的資料列,其 apply 資料行值為 null

C#
public static System.Data.Common.CommandTrees.DbApplyExpression OuterApply (this System.Data.Common.CommandTrees.DbExpressionBinding input, System.Data.Common.CommandTrees.DbExpressionBinding apply);

參數

input
DbExpressionBinding

指定輸入集的 DbExpressionBinding

apply
DbExpressionBinding

DbExpressionBinding,指定要針對輸入集中每個成員進行一次評估的邏輯。

傳回

具有指定之輸入及套用繫結與 OuterApply 之 DbExpressionKind 的新 DbApplyExpression。

例外狀況

inputapply 為 null。

適用於

.NET Framework 4.8.1 和其他版本
產品 版本
.NET Framework 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1