LINQ-to-SQL eagerly load entire object graph

Posted by Paddy on Stack Overflow See other posts from Stack Overflow or by Paddy
Published on 2010-05-12T11:50:12Z Indexed on 2010/05/12 11:54 UTC
Read the original article Hit count: 165

Filed under:
|

I have a need to load an entire LINQ-to-SQL object graph from a certain point downwards, loading all child collections and the objects within them etc. This is going to be used to dump out the object structure and data to XML.

Is there a way to do this without generating a large hard coded set of DataLoadOptions to 'shape' my data?

© Stack Overflow or respective owner

Related posts about linq-to-sql

Related posts about eager-loading