title: Fetch from foreign key tables with LINQ and LINQ to SQL
body: <p>I have an database table called MenuItem (MenuItemID, ParentMenuItemID, MenuItemName). I want to use this to populate a Menu control (probably the .NET Menu control).</p>
  
  <p>Each MenuItem has a parent. If there is no parent, it is a top level menu item. I have made a LINQ to SQL class mapped to the MenuItem table. As my table has a foreign key to itself from ParentMenuItemID to MenuItemID, my auto generated MenuItem class contains a collection of MenuItem. This collection should contain all the children of a menu item.</p>
  
  <p>The result should be stored in a List.</p>
  
  <p>Is it possible in one query to fetch:</p>
  
  <ul>
  <li>all top level menu items</li>
  <li>all children to the top level menu items collected under their parent objects</li>
  </ul>
  
  <p>It shouldn't be any problem to fetch the top level menu items and then iterate them and query for each child, or fetch all menu items and then put them inside the right parent. But if this could be done in a single query... I'd be happy :)</p>