DbExpressionBuilder.Exists(DbExpression) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
建立一個新參數 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 沒有集合結果類型。