Select from following answers:- Set the value of the ProxyCreationEnabled property to False on the instance of ObjectContextOptions that is returned by the ContextOptions property on the ObjectContext

- Execute queries with the MergeOption query parameter set to NoTracking.
- Create entity objects by using the CreateObject method on the ObjectContext.
- All Above
WCF cannot directly serialize or deserialize proxies because the DataContractSerializer can serialize and deserialize only known types, and proxy types are not known types. When you need to serialize POCO entities, disable proxy creation or use the ProxyDataContractResolver class to serialize proxy objects as the original POCO entities. To disable proxy creation, set the ProxyCreationEnabled property to False.
Executing queries with the MergeOption query parameter set to NoTracking disables object state tracking. However, it does not prevent proxy creation to enable serialization.
Show Correct Answer
Source: MeasureUp.com | |
Alert Moderator