Provides facilities for querying and working with entity data as objects.
Assembly: System.Data.Entity (in System.Data.Entity.dll)
The class is the primary class for interacting with data as objects that are instances of entity types that are defined in an Entity Data Model (EDM). An instance of the class encapsulates the following:
A connection to the database, in the form of an EntityConnection object.
Metadata that describes the model, in the form of a MetadataWorkspace object.
An ObjectStateManager object that manages objects persisted in the cache.
When the object layer that represents the conceptual model of an EDM is generated by the Entity Data Model tools, the class that represents the EntityContainer for the model is derived from the . For more information, see Object Services Overview (Entity Framework).
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.