DbExpressionBuilder.Intersect Method (DbExpression, DbExpression)
Creates a new DbIntersectExpression that computes the intersection of the left and right set arguments.
Assembly: EntityFramework (in EntityFramework.dll)
public static DbIntersectExpression Intersect( this DbExpression left, DbExpression right )
Parameters
- left
-
Type:
System.Data.Entity.Core.Common.CommandTrees.DbExpression
An expression that defines the left set argument.
- right
-
Type:
System.Data.Entity.Core.Common.CommandTrees.DbExpression
An expression that defines the right set argument.
Return Value
Type: System.Data.Entity.Core.Common.CommandTrees.DbIntersectExpressionA new DbIntersectExpression that represents the intersection of the left and right arguments.
Exception | Condition |
---|---|
ArgumentNullException | left or right is null. |
ArgumentException | No common collection result type exists between left and right. |