You are implementing an application that uses Entity Framework-generated entities to update a data source. To prevent an optimistic concurrency violation, you need to ensure that the object context includes all data source changes before you call the SaveChanges method.

What should you do?

 Posted by Rajkatie on 9/27/2012 | Category: ADO.NET Interview questions | Views: 1171 | Points: 40
Select from following answers:
  1. Call the Refresh method. Set the RefreshMode to ClientWins.
  2. Call the DetectChanges method.
  3. Call the AcceptAllChanges method.
  4. All Above

Show Correct Answer

Source: MeasureUp.Com | | Alert Moderator 

Comments or Responses

Login to post response