ObjectQuery Class

ObjectQuery Class

Implements common functionality for queries against an Entity Data Model (EDM) using both LINQ to Entities and ObjectQuery<T>.

Namespace:  System.Data.Objects
Assembly:  System.Data.Entity (in System.Data.Entity.dll)

public abstract class ObjectQuery : IOrderedQueryable, 
	IQueryable, IEnumerable, IListSource

ObjectQuery is the base class for queries against an Entity Data Model (EDM). ObjectQuery is provided to ensure that LINQ to Entities queries have the same functionality as queries executed using ObjectQuery<T>. You must use ObjectQuery<T> with a specified type to query an EDM. For more information, see Object Queries (Entity Framework).

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Windows 7, Windows Vista, Windows XP SP2, Windows Server 2008 R2, Windows Server 2008, Windows Server 2003

The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

.NET Framework

Supported in: 3.5 SP1

Community Additions

© 2016 Microsoft