Select from following answers:- Query the ObjectStateManager object given by the ObjectContext's ObjectStateManager property.

- Call the TryGetObjectByKey method on the ObjectContext.
- Call the Attach method on the ObjectContext.
- All Above
The ObjectStateManager class maintains object state and identity management for entity type instances and relationship instances. You can access its OriginalValue and ModifiedValues properties to compare object properties for attached entities only. An entity that is created by deserializing a serialized representation is detached.
The ObjectContext.Attach method attaches an object or object graph to the object context when the object has an entity key. It does not retrieve cached original values.
Show Correct Answer
Source: MeasureUp.com | |
Alert Moderator