共用方式為


DbExpressionBuilder.Except(DbExpression, DbExpression) 方法

定義

建立新的 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。

左邊和右側之間沒有常見的集合結果類型。

適用於