title: Return all related entities with Entity Framework
body: <p>I'm playing with Entity Framework for the first time. I'm writing the following simply query:</p>
  
  <pre><code>public List&lt;Request&gt; GetResult(string code)
  {
      List&lt;Request&gt; requests = new List&lt;Request&gt;();
  
      using (var db = new Context())
      {
          requests = (from c in db.Requests where c.Code == code select c).ToList();
      }
  
      return requests;
  }
  </code></pre>
  
  <p>There are a few related entities to the <code>Request</code> object such as a <code>Results</code> table that has a 1-to-1 relation with the <code>Request</code> table. However they are all coming back null. </p>
  
  <p>How can I query with Entity Framework and return a entity and ALL its related entities?</p>
  
  <p>TIA</p>