語言

DbExpressionBuilder.Element(DbExpression) 方法

定義

建立一個新集合 DbElementExpression ,將集合轉換成單元素集。

public static System.Data.Entity.Core.Common.CommandTrees.DbElementExpression Element(this System.Data.Entity.Core.Common.CommandTrees.DbExpression argument);
static member Element : System.Data.Entity.Core.Common.CommandTrees.DbExpression -> System.Data.Entity.Core.Common.CommandTrees.DbElementExpression
<Extension()>
Public Function Element (argument As DbExpression) As DbElementExpression

參數

argument
DbExpression

一個指定輸入集合的表達式。

傳回

一個 DbElementExpression,代表集合參數轉換為單例的過程。

例外狀況

參數為空。

參數沒有集合結果型別。

適用於