DbExpressionBuilder.Element(DbExpression) 方法

定義

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

public:
[System::Runtime::CompilerServices::Extension]
 static System::Data::Common::CommandTrees::DbElementExpression ^ Element(System::Data::Common::CommandTrees::DbExpression ^ argument);
public static System.Data.Common.CommandTrees.DbElementExpression Element(this System.Data.Common.CommandTrees.DbExpression argument);
static member Element : System.Data.Common.CommandTrees.DbExpression -> System.Data.Common.CommandTrees.DbElementExpression
<Extension()>
Public Function Element (argument As DbExpression) As DbElementExpression

參數

argument
DbExpression

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

傳回

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

例外狀況

argument 為 null。

argument 沒有集合結果類型。

適用於