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

public:
[System::Runtime::CompilerServices::Extension]
 static System::Data::Common::CommandTrees::DbApplyExpression ^ OuterApply(System::Data::Common::CommandTrees::DbExpression ^ source, Func<System::Data::Common::CommandTrees::DbExpression ^, System::Collections::Generic::KeyValuePair<System::String ^, System::Data::Common::CommandTrees::DbExpression ^>> ^ apply);
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);
static member OuterApply : System.Data.Common.CommandTrees.DbExpression * Func<System.Data.Common.CommandTrees.DbExpression, System.Collections.Generic.KeyValuePair<string, System.Data.Common.CommandTrees.DbExpression>> -> System.Data.Common.CommandTrees.DbApplyExpression
<Extension()>
Public Function OuterApply (source As DbExpression, apply As Func(Of DbExpression, KeyValuePair(Of String, DbExpression))) As DbApplyExpression

參數

source
DbExpression

指定輸入集的 DbExpression

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

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

傳回

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

例外狀況

sourceapply 為 null。

-或-

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

Source 沒有集合結果類型。

-或-

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

適用於

OuterApply(DbExpressionBinding, DbExpressionBinding)

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

public:
[System::Runtime::CompilerServices::Extension]
 static System::Data::Common::CommandTrees::DbApplyExpression ^ OuterApply(System::Data::Common::CommandTrees::DbExpressionBinding ^ input, System::Data::Common::CommandTrees::DbExpressionBinding ^ apply);
public static System.Data.Common.CommandTrees.DbApplyExpression OuterApply (this System.Data.Common.CommandTrees.DbExpressionBinding input, System.Data.Common.CommandTrees.DbExpressionBinding apply);
static member OuterApply : System.Data.Common.CommandTrees.DbExpressionBinding * System.Data.Common.CommandTrees.DbExpressionBinding -> System.Data.Common.CommandTrees.DbApplyExpression
<Extension()>
Public Function OuterApply (input As DbExpressionBinding, apply As DbExpressionBinding) As DbApplyExpression

參數

input
DbExpressionBinding

指定輸入集的 DbExpressionBinding

apply
DbExpressionBinding

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

傳回

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

例外狀況

inputapply 為 null。

適用於