Select from following answers:
Show Correct Answer
- Call the ObjectContext's method Refresh method before calling SaveChanges.
- Call the ObjectContext's method AcceptAllChanges method before calling SaveChanges.
- Replace the call to Attach with a call to the ObjectContext's AddObject method and After attaching the updated product, call the ChangeObjectState method of the ObjectContext's ObjectStateManager. Set the EntityState to Added.
- All Above
Source: MeasureUp.Com | |