DbExpressionBuilder.CrossApply 方法

定義

建立一個新運算 DbApplyExpression 式,對給定輸入集合的每個元素評估一次, apply 產生一組列,並對應輸入與應用欄位。

多載

名稱 Description
CrossApply(DbExpression, Func<DbExpression,KeyValuePair<String,DbExpression>>)

建立一個新運算 DbApplyExpression 式,對給定輸入集合的每個元素評估一次, apply 產生一組列,並對應輸入與應用欄位。 不 apply 包含 的行,若 的 評估為空集合。

CrossApply(DbExpressionBinding, DbExpressionBinding)

建立一個新運算 DbApplyExpression 式,對給定輸入集合的每個元素評估一次, apply 產生一組列,並對應輸入與應用欄位。 不 apply 包含 的行,若 的 評估為空集合。

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

建立一個新運算 DbApplyExpression 式,對給定輸入集合的每個元素評估一次, apply 產生一組列,並對應輸入與應用欄位。 不 apply 包含 的行,若 的 評估為空集合。

public:
[System::Runtime::CompilerServices::Extension]
 static System::Data::Common::CommandTrees::DbApplyExpression ^ CrossApply(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 CrossApply(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 CrossApply : 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 CrossApply (source As DbExpression, apply As Func(Of DbExpression, KeyValuePair(Of String, DbExpression))) As DbApplyExpression

參數

source
DbExpression

A DbExpression 指定輸入集合。

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

一種方法,指定對輸入集合中每個成員評估一次的邏輯。

傳回

一個新的 DbApplyExpression,包含指定的輸入與應用綁定,以及 DbExpressionKind CrossApply。

例外狀況

sourceapply 為空值。

-或-

結果 包含 apply 一個為 null 的名稱或表達式。

source 沒有集合結果類型。

-或-

結果 包含 apply 一個名稱或表達式,但該名稱或表達式在表達式綁定中並不有效。

適用於

CrossApply(DbExpressionBinding, DbExpressionBinding)

建立一個新運算 DbApplyExpression 式,對給定輸入集合的每個元素評估一次, apply 產生一組列,並對應輸入與應用欄位。 不 apply 包含 的行,若 的 評估為空集合。

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

參數

input
DbExpressionBinding

一個 DbExpressionBinding 指定輸入集合的 。

apply
DbExpressionBinding

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

傳回

一個新的 DbApplyExpression,包含指定的輸入與應用綁定,以及 DbExpressionKind CrossApply。

例外狀況

inputapply 為空值。

適用於