Your application uses the following code to submit changes to a database using a strongly typed DataContext named db:

catch (ChangeConflictException e)
foreach (ObjectChangeConflict occ in db.ChangeConflicts)
// Overwrite values
You must add code to resolve conflicts such that:
* Original property values of changed properties must not be overwritten with values received from the database.
* Client changes to properties must be preserved.

What should you do?

 Posted by Rajkatie on 9/9/2012 | Category: ADO.NET Interview questions | Views: 2803 | Points: 40
Select from following answers:
  1. Call ObjectChangeConflict.Resolve with KeepChanges.
  2. Call ObjectChangeConflict.Resolve with OverwriteCurrentValues.
  3. Call DataContext.Refresh.
  4. All Above

Show Correct Answer

Source: MeasureUp.Com | | Alert Moderator 

Comments or Responses

Login to post response