語言

DbExpressionBuilder.Intersect(DbExpression, DbExpression) 方法

定義

建立一個新值 DbIntersectExpression ,計算左集合與右集合參數的交集。

public static System.Data.Entity.Core.Common.CommandTrees.DbIntersectExpression Intersect(this System.Data.Entity.Core.Common.CommandTrees.DbExpression left, System.Data.Entity.Core.Common.CommandTrees.DbExpression right);
static member Intersect : System.Data.Entity.Core.Common.CommandTrees.DbExpression * System.Data.Entity.Core.Common.CommandTrees.DbExpression -> System.Data.Entity.Core.Common.CommandTrees.DbIntersectExpression
<Extension()>
Public Function Intersect (left As DbExpression, right As DbExpression) As DbIntersectExpression

參數

left
DbExpression

一個定義左集合論元的表達式。

right
DbExpression

一個定義正確集合參數的表達式。

傳回

一個新的 DbIntersectExpression,代表左參數與右參數的交集。

例外狀況

左或右皆為零。

左與右之間沒有共同的收集結果類型。

適用於