ObjectQuery<T>.Intersect 方法

[本页针对的是实体框架版本 6。最新版本以“实体框架”NuGet 包的形式提供。有关实体框架的更多信息,请参见 msdn.com/data/ef。]

此查询生成器方法创建其结果同时包含在此查询和指定的另一查询的结果中的新查询。

命名空间:  System.Data.Entity.Core.Objects
程序集:  EntityFramework(在 EntityFramework.dll 中)

语法

声明
Public Function Intersect ( _
    query As ObjectQuery(Of T) _
) As ObjectQuery(Of T)
用法
Dim instance As ObjectQuery 
Dim query As ObjectQuery(Of T)
Dim returnValue As ObjectQuery(Of T)

returnValue = instance.Intersect(query)
public ObjectQuery<T> Intersect(
    ObjectQuery<T> query
)
public:
ObjectQuery<T>^ Intersect(
    ObjectQuery<T>^ query
)
member Intersect : 
        query:ObjectQuery<'T> -> ObjectQuery<'T> 
public function Intersect(
    query : ObjectQuery<T>
) : ObjectQuery<T>

参数

返回值

类型:System.Data.Entity.Core.Objects.ObjectQuery<T>
新的 ObjectQuery 实例。

异常

例外 条件
ArgumentNullException

如果查询参数是 null。

请参阅

参考

ObjectQuery<T> 类

System.Data.Entity.Core.Objects 命名空间