DbExpressionBuilder.Or(DbExpression, DbExpression) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
創造一個 DbOrExpression 執行左、右論證邏輯 Or 的 。
public:
[System::Runtime::CompilerServices::Extension]
static System::Data::Common::CommandTrees::DbOrExpression ^ Or(System::Data::Common::CommandTrees::DbExpression ^ left, System::Data::Common::CommandTrees::DbExpression ^ right);
public static System.Data.Common.CommandTrees.DbOrExpression Or(this System.Data.Common.CommandTrees.DbExpression left, System.Data.Common.CommandTrees.DbExpression right);
static member Or : System.Data.Common.CommandTrees.DbExpression * System.Data.Common.CommandTrees.DbExpression -> System.Data.Common.CommandTrees.DbOrExpression
<Extension()>
Public Function Or (left As DbExpression, right As DbExpression) As DbOrExpression
參數
- left
- DbExpression
一個布林表達式,指定左參數。
- right
- DbExpression
一個布林運算式,用來指定正確的參數。
傳回
一個新的 DbOrExpression,包含指定的參數。
例外狀況
left 或 right 為空值。
left 或 right 沒有布林結果型別。