DbExpressionBuilder.CrossApply 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
多載
CrossApply(DbExpression, Func<DbExpression,KeyValuePair<String,DbExpression>>) |
建立新的 DbApplyExpression ,針對指定輸入集的每個元素評估指定的套用運算式一次,產生具有對應輸入並套用資料行的資料列集合。 不包含套用評估為空集的資料列。 |
CrossApply(DbExpressionBinding, DbExpressionBinding) |
建立新的 DbApplyExpression ,針對指定輸入集的每個元素評估指定的套用運算式一次,產生具有對應輸入並套用資料行的資料列集合。 不包含套用評估為空集的資料列。 |
CrossApply(DbExpression, Func<DbExpression,KeyValuePair<String,DbExpression>>)
建立新的 DbApplyExpression ,針對指定輸入集的每個元素評估指定的套用運算式一次,產生具有對應輸入並套用資料行的資料列集合。 不包含套用評估為空集的資料列。
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1006:DoNotNestGenericTypesInMemberSignatures")]
public static System.Data.Entity.Core.Common.CommandTrees.DbApplyExpression CrossApply(this System.Data.Entity.Core.Common.CommandTrees.DbExpression source, Func<System.Data.Entity.Core.Common.CommandTrees.DbExpression,System.Collections.Generic.KeyValuePair<string,System.Data.Entity.Core.Common.CommandTrees.DbExpression>> apply);
static member CrossApply : System.Data.Entity.Core.Common.CommandTrees.DbExpression * Func<System.Data.Entity.Core.Common.CommandTrees.DbExpression, System.Collections.Generic.KeyValuePair<string, System.Data.Entity.Core.Common.CommandTrees.DbExpression>> -> System.Data.Entity.Core.Common.CommandTrees.DbApplyExpression
<Extension()>
Public Function CrossApply (source As DbExpression, apply As Func(Of DbExpression, KeyValuePair(Of String, DbExpression))) As DbApplyExpression
參數
- source
- DbExpression
指定輸入集的 DbExpression。
- apply
- Func<DbExpression,KeyValuePair<String,DbExpression>>
方法,指定要針對輸入集中每個成員進行一次評估的邏輯。
傳回
具有指定之輸入及套用繫結與 CrossApply 之 DbExpressionKind 的新 DbApplyExpression。
- 屬性
例外狀況
apply 的結果包含 null 的名稱或運算式。
apply 的結果包含名稱或運算式在運算式系結中無效。
適用於
CrossApply(DbExpressionBinding, DbExpressionBinding)
建立新的 DbApplyExpression ,針對指定輸入集的每個元素評估指定的套用運算式一次,產生具有對應輸入並套用資料行的資料列集合。 不包含套用評估為空集的資料列。
public static System.Data.Entity.Core.Common.CommandTrees.DbApplyExpression CrossApply(this System.Data.Entity.Core.Common.CommandTrees.DbExpressionBinding input, System.Data.Entity.Core.Common.CommandTrees.DbExpressionBinding apply);
static member CrossApply : System.Data.Entity.Core.Common.CommandTrees.DbExpressionBinding * System.Data.Entity.Core.Common.CommandTrees.DbExpressionBinding -> System.Data.Entity.Core.Common.CommandTrees.DbApplyExpression
<Extension()>
Public Function CrossApply (input As DbExpressionBinding, apply As DbExpressionBinding) As DbApplyExpression
參數
- input
- DbExpressionBinding
指定輸入集的 DbExpressionBinding。
- apply
- DbExpressionBinding
DbExpressionBinding,指定要針對輸入集中每個成員進行一次評估的邏輯。
傳回
具有指定之輸入及套用繫結與 CrossApply 之 DbExpressionKind 的新 DbApplyExpression。
例外狀況
輸入或套用為 null。