I have an object graph that I'm trying to persist while it's in an interim state. I don't want to put the data in the true tables, so I'm serializing the graph and storing it in a separate table. I'm using WCF/RIA services (v.1.0) to link my
Silverlight (v.4) client with my back-end server (.NET v.4 with Entity Framework). I'm using POCOs instead of entities on the back-end.
I was able to decorate all of the members of my object graph with the [DataMember] attribute as well as decorate the classes with [DataContract]. When these POCOs are copied to the client project the [DataMember] attributes are missing from the child
collections. So when I serialize the graph (on the client) the children are missing. I have also tried to send the graph to the server and serialize it there, but the children are missing when the graph gets to the service method. On a side-note,
persisting the graph into its set of tables works fine.
I've tried this from numerous angles and cannot figure out how to get this working. Any suggestions or alternatives would be greatly appreciated.
View Complete Post