title: Select all objects in a list
body: <p>I have three objects: </p>
  
  <blockquote>
    <p>Artist, Albums and Track.</p>
  </blockquote>
  
  <p>The artists are stored in a <code>List&lt;Artist&gt;</code> and inside the Artist object there's another list for the artist's Albums (<code>List&lt;Albums&gt;</code>) And in the Album object there is yet another list for the tracks (<code>List&lt;Track&gt;</code>)</p>
  
  <p>How would you go about selecting all the tracks at once?</p>
  
  <p>Is there any way to do:</p>
  
  <pre><code>TrackList.AddRange(ArtistList.Albums.Tracks);
  </code></pre>
  
  <p>Until now I have been doing this:</p>
  
  <pre><code>foreach (Artist artist in artistlist)
    {
       if (artist.Albums != null)
       {
         ForEach(Album album in artist.Albums)
         {
           Context.AddRange(album.Tracks);
         }
       }
     }
  </code></pre>