DbExpressionBuilder.Exists(DbExpression) 方法

定義

建立一個新參數 DbExpression ,用以判斷指定的集合參數是否非空。

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

參數

argument
DbExpression

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

傳回

一個新 DbNotExpression 物件套用到一個具有指定參數的新物件 DbIsEmptyExpression

例外狀況

argument 為 null。

argument 沒有集合結果類型。

適用於