DbExpressionBuilder.Intersect(DbExpression, DbExpression) 方法

定义

创建一个新 DbIntersectExpression 值,用于计算左右集参数的交集。

public:
[System::Runtime::CompilerServices::Extension]
 static System::Data::Common::CommandTrees::DbIntersectExpression ^ Intersect(System::Data::Common::CommandTrees::DbExpression ^ left, System::Data::Common::CommandTrees::DbExpression ^ right);
public static System.Data.Common.CommandTrees.DbIntersectExpression Intersect(this System.Data.Common.CommandTrees.DbExpression left, System.Data.Common.CommandTrees.DbExpression right);
static member Intersect : System.Data.Common.CommandTrees.DbExpression * System.Data.Common.CommandTrees.DbExpression -> System.Data.Common.CommandTrees.DbIntersectExpression
<Extension()>
Public Function Intersect (left As DbExpression, right As DbExpression) As DbIntersectExpression

参数

left
DbExpression

定义左集参数的表达式。

right
DbExpression

定义正确的集参数的表达式。

返回

一个新的 DbIntersectExpression,表示左右参数的交集。

例外

leftright 为 null。

不存在 left 常见的集合结果类型或 right

适用于