DbExpressionBuilder.Lambda 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
多載
| Lambda(DbExpression, IEnumerable<DbVariableReferenceExpression>) |
利用指定的內嵌 Lambda 函式實作與和型式參數建立 DbLambda。 |
| Lambda(DbExpression, DbVariableReferenceExpression[]) |
利用指定的內嵌 Lambda 函式實作與和型式參數建立 DbLambda。 |
Lambda(DbExpression, IEnumerable<DbVariableReferenceExpression>)
利用指定的內嵌 Lambda 函式實作與和型式參數建立 DbLambda。
public static System.Data.Entity.Core.Common.CommandTrees.DbLambda Lambda(System.Data.Entity.Core.Common.CommandTrees.DbExpression body, System.Collections.Generic.IEnumerable<System.Data.Entity.Core.Common.CommandTrees.DbVariableReferenceExpression> variables);
static member Lambda : System.Data.Entity.Core.Common.CommandTrees.DbExpression * seq<System.Data.Entity.Core.Common.CommandTrees.DbVariableReferenceExpression> -> System.Data.Entity.Core.Common.CommandTrees.DbLambda
Public Function Lambda (body As DbExpression, variables As IEnumerable(Of DbVariableReferenceExpression)) As DbLambda
參數
- body
- DbExpression
定義 Lambda 函式邏輯的運算式。
- variables
- IEnumerable<DbVariableReferenceExpression>
DbVariableReferenceExpression 集合,表示傳遞給 Lambda 函式的型式參數。 這些變數適用於主體運算式中。
傳回
新的運算式,描述內嵌 Lambda 函式,其中包含指定的主體和正式參數。
例外狀況
變數為 null 或包含 null,或 body 為 null。
變數包含多個具有相同變數名稱的專案。
適用於
Lambda(DbExpression, DbVariableReferenceExpression[])
利用指定的內嵌 Lambda 函式實作與和型式參數建立 DbLambda。
public static System.Data.Entity.Core.Common.CommandTrees.DbLambda Lambda(System.Data.Entity.Core.Common.CommandTrees.DbExpression body, params System.Data.Entity.Core.Common.CommandTrees.DbVariableReferenceExpression[] variables);
static member Lambda : System.Data.Entity.Core.Common.CommandTrees.DbExpression * System.Data.Entity.Core.Common.CommandTrees.DbVariableReferenceExpression[] -> System.Data.Entity.Core.Common.CommandTrees.DbLambda
Public Function Lambda (body As DbExpression, ParamArray variables As DbVariableReferenceExpression()) As DbLambda
參數
- body
- DbExpression
定義 Lambda 函式邏輯的運算式。
- variables
- DbVariableReferenceExpression[]
DbVariableReferenceExpression 集合,表示傳遞給 Lambda 函式的型式參數。 這些變數適用於主體運算式中。
傳回
新的運算式,描述內嵌 Lambda 函式,其中包含指定的主體和正式參數。
例外狀況
變數為 null 或包含 null,或 body 為 null。
變數包含多個具有相同變數名稱的專案。