You are implementing a repository method with LINQ to SQL. The method will return a Customer instance with a given identifier. The Customer class includes an Orders property that gives related Order instances. You need to ensure that orders given by the Orders property are retrieved when the Customer instance is retrieved.

What should you do?

 Posted by Rajkatie on 8/31/2012 | Category: ADO.NET Interview questions | Views: 1210 | Points: 40
Select from following answers:
  1. Use the LoadWith method on the DataLoadOptions instances associated with the DataContext.
  2. Use the AssociateWith method on the DataLoadOptions instances associated with the DataContext.
  3. Set the DeferredLoadingEnabled property on the DataContext to False and set the ObjectTrackingEnabled property to False.
  4. All Above

Show Correct Answer


Source: MeasureUp.com | | Alert Moderator 

Comments or Responses

Login to post response