DbExpressionBuilder.Intersect(DbExpression, DbExpression) Method

Definition

Creates a new DbIntersectExpression that computes the intersection of the left and right set arguments.

public static System.Data.Common.CommandTrees.DbIntersectExpression Intersect (this System.Data.Common.CommandTrees.DbExpression left, System.Data.Common.CommandTrees.DbExpression right);

Parameters

left
DbExpression

An expression that defines the left set argument.

right
DbExpression

An expression that defines the right set argument.

Returns

A new DbIntersectExpression that represents the intersection of the left and right arguments.

Exceptions

left or right is null.

No common collection result type exists between left or right.

Applies to

Produkt Versjoner
.NET Framework 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1