开发者

How to serialize a Linq to Sql object graph without hiding the child's "Parent" member

Without hiding the Child object's reference to the Parent object, has anyone been able t开发者_如何学JAVAo use an XmlSerializer() object to move a Linq to SQL object to an XML document, or is the only appropriate way of handling this to create a custom serialization/deserialization class to handle moving the data to/from the xml document?

I don't like the idea of hiding the child object's reference to the parent object is why I'm asking.

Thx.


Making the reference internal solves this problem for JSON serialization. You can try it to see if it would work for XML serialization too.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜