Share via


DbExpressionBuilder.Except(DbExpression, DbExpression) Method

Definition

Creates a new DbExceptExpression that computes the subtraction of the right set argument from the left set argument.

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

Parameters

left
DbExpression

An expression that defines the left set argument.

right
DbExpression

An expression that defines the right set argument.

Returns

A new DbExceptExpression that represents the difference of the left argument from the right argument.

Exceptions

left or right is null.

No common collection result type exists between left and right.

Applies to