DbExpressionBuilder.Except(DbExpression, DbExpression) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
建立新的 DbExceptExpression,這個運算式會從左集合引數減去右集合引數。
public static System.Data.Entity.Core.Common.CommandTrees.DbExceptExpression Except(this System.Data.Entity.Core.Common.CommandTrees.DbExpression left, System.Data.Entity.Core.Common.CommandTrees.DbExpression right);
static member Except : System.Data.Entity.Core.Common.CommandTrees.DbExpression * System.Data.Entity.Core.Common.CommandTrees.DbExpression -> System.Data.Entity.Core.Common.CommandTrees.DbExceptExpression
<Extension()>
Public Function Except (left As DbExpression, right As DbExpression) As DbExceptExpression
參數
- left
- DbExpression
定義左集合引數的運算式。
- right
- DbExpression
定義右集合引數的運算式。
傳回
新的 DbExceptExpression,表示左引數與右引數的差異。
例外狀況
向左或向右為 Null。
左邊和右側之間沒有常見的集合結果類型。