title: Retrieving child records in Entity Framework code First
body: <p>I have a Generic Repository which has all the common operations. I have two tables Customer and Address. Address is referenced in Customer</p>
  
  <pre><code>public IEnumerable&lt;TEntity&gt; GetAll() 
    {
        return context.Set&lt;TEntity&gt;();
    }
  </code></pre>
  
  <p>Below is my repository</p>
  
  <pre><code>Repository&lt;Customer&gt; customerRepostitory = new Repository&lt;Customer&gt;();
  
  var cusotomerList = customerRepostitory.GetAll();
  </code></pre>
  
  <p>The above line just returning the customer list, its not including Address Details.
  Can you suggest the best way to retrieve the child records when i call parent records.</p>