title: Entity framework - one to many - select from both table
body: <p>In my DB I have "Place" and "Image" table. "Image" has a foreign key from Place which means each place can have multiple images.</p>
  
  <p>I select places like this:</p>
  
  <pre><code>var query = (from x in DB.Places
    where x.CityId == CityId 
    select x).ToList();
  </code></pre>
  
  <p>and when I want to access to its images by: <code>query.Images.toList();</code> i get this error : <br/></p>
  
  <blockquote>
    <p>The ObjectContext instance has been disposed and can no longer be used
    for operations that require a connection.</p>
  </blockquote>
  
  <hr>
  
  <p>how should be my select query in order to get a place and it's images just by <strong>one</strong> select query ??</p>
  
  <p>thanks in advance<br/>
  MA.</p>