ObjectContext.GetObjectByKey Method (EntityKey)
Returns an object that has the specified entity key.
Assembly: System.Data.Entity (in System.Data.Entity.dll)
EntityKey from the ObjectStateManager. If the object is currently not loaded into the object context, a query is executed in an attempt to return the object from the data source. For more information, see Object Queries.tries to retrieve an object that has the specified
This method will return objects in the Deleted state.
A temporary key cannot be used to return an object from the data source.
Available since 3.5