You are implementing an application that uses LINQ to SQL. You load an Order entity by querying the Orders property of a strongly typed DataContext. 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: 1087 | Points: 40
Select from following answers:
  1. Call the Refresh method of the DataContext and then query the Orders property.
  2. Set the DeferredLoadingEnabled property on the DataContext to False and then query the Orders property.
  3. Retrieve the entity by querying the GetTable method on the DataContext.
  4. All Above

Show Correct Answer

Source: | | Alert Moderator 

Comments or Responses

Login to post response