I need to serialize an object to pass it as a parameter in a webservice. I followed the recommendations the the article: DataContractSerializer Error using Entity Framework 4.0 with WCF 4.0
This Object is quit complex because it resembles a hierarchical data structure.
Now I have a problem, because the related objects (one to many objects) are not loading and their value is null.
This is not a problem if I use Dynamic proxies, however dynamic proxy objects do not serialize for use in a webservice.
I have tried to turn on / off lazy loading in the dbContext but it made no difference.
Any one knows how I can work around this problem, perhaps even loading a proxy object and copying it to a 'Real' Object?
Thanks