You are implementing a Windows Communication Foundation (WCF) service that uses Entity Framework to return POCO entities. The POCO entities do not need to track changes as the changes occur or support lazy loading of the related objects. You need to ensure that POCO entities can be easily serialized with the default DataContractSerializer.

What should you do?

 Posted by Rajkatie on 8/31/2012 | Category: ADO.NET Interview questions | Views: 2147 | Points: 40
Select from following answers:
  1. Set the value of the ProxyCreationEnabled property to False on the instance of ObjectContextOptions that is returned by the ContextOptions property on the ObjectContext
  2. Execute queries with the MergeOption query parameter set to NoTracking.
  3. Create entity objects by using the CreateObject method on the ObjectContext.
  4. All Above

Show Correct Answer


Source: MeasureUp.com | | Alert Moderator 

Comments or Responses

Login to post response