title: How to do recursive load with Entity framework?
body: <p>I have a tree structure in the DB with TreeNodes table. the table has nodeId, parentId and parameterId. in the EF, The structure is like TreeNode.Children where each child is a TreeNode...
  I also have a Tree table with contain id,name and rootNodeId.</p>
  
  <p>At the end of the day I would like to load the tree into a TreeView but I can't figure how to load it all at once.
  I tried:</p>
  
  <pre><code>var trees = from t in context.TreeSet.Include("Root").Include("Root.Children").Include("Root.Children.Parameter")
          .Include("Root.Children.Children")
                          where t.ID == id
                          select t;
  </code></pre>
  
  <p>This will get me the the first 2 generations but not more.
  How do I load the entire tree with all generations and the additional data?</p>