You are implementing an application that uses Entity Framework. You load an Order entity by querying the Orders property of a strongly typed ObjectContext. After you modify the Order entity, you need to retrieve an instance with properties reset to the values in the database.

What should you do?

 Posted by Rajkatie on 8/31/2012 | Category: ADO.NET Interview questions | Views: 2635 | Points: 40
Select from following answers:
  1. Call the AcceptChanges method of the ObjectContext and retrieve a new Order entity by querying the Orders property.
  2. Call the GetObjectByKey method of the ObjectContext to retrieve a new Order entity.
  3. Call the Refresh method of the ObjectContext and retrieve a new Order entity by querying the Orders property.
  4. All Above

Show Correct Answer


Source: MeasureUp.com | | Alert Moderator 

Comments or Responses

Login to post response