Select from following answers:- Call the DetectChanges method of the ObjectContext.
- Call the Refresh method of the ObjectContext.
- Call the GetObjectStateEntries method of the ObjectContext's ObjectStateManager.
- All Above
The DetectChanges method ensures that ObjectStateEntry changes are synchronized with changes in all objects that the ObjectStateManager tracks.
ObjectStateManager methods can be used to get an entity object state and current and original property values. Its TryGetObjectStateEntry method cannot be used to detect changes in objects in which tracking in not enabled unless the DetectChanges method is called first.
Show Correct Answer
Source: MeasureUp.Com | |
Alert Moderator