title: Linq projection nested LIST<T> property
body: <p>This query has taken a couple days but I am almost there. I have hacked my way through LINQ to entities to come up with the following from reading a lot of tutorials. However this last part I am missing.</p>
  
  <p>I have two basic objects:</p>
  
  <pre><code>public class DashboardNavigation()
  {
     public int Id {get; set;}
     public string Name {get; set;}
     .....etc.....
     public List&lt;SubNav&gt; SubDashNav {get; set;}
  }
  
  public class SubNav()
  {
     ....properties....
  }
  
  
  
  
  var query = _mlsDashboardNavRepository.Table
          .OrderBy(x =&gt; x.Id)
          .Select(x =&gt; new
          {
              Id = x.Id,
              Name = x.Name,
              Description = x.Description,
              ImageUrl = x.ImageUrl,
              SubDashNav = _mlsSubDashNav.Table
                  .Where(s =&gt; s.DashId == x.Id)
                  .Select(y =&gt; new { Id = y.Id, DashId = y.DashId, Name = y.Name, Description = y.Description, ImageUrl = y.ImageUrl, IsAdvanced = y.IsAdvanced }).ToList()
  
          }).ToList().Select(q =&gt; new MLS_DashboardNavigation()
                              {
                                  Id = q.Id,
                                  Name = q.Name,
                                  Description = q.Description,
                                  ImageUrl = q.ImageUrl,
                                  SubDashNav = ...???
  
                              }).ToList();
  </code></pre>
  
  <p>My Linq projects DashboardNavigation correctly but I can't figure out how to get SubDashNav populated???</p>