title: Duplicating a model that has a hierarchy
body: <p>My model looks something like this:</p>
  
  <pre><code>Company
  -Locations
  
  Locations
  -Stores
  
  Stores
  -Products
  </code></pre>
  
  <p>So I want to make a copy of a Company, and all of its associations should also be copied and saved to the database.</p>
  
  <p>How can I do this if I have the Company loaded in memory?</p>
  
  <pre><code>Company company = DbContext.Companies.Find(123);
  </code></pre>
  
  <p>If it is tricky, I can loop through each association and then call create a new object.  The Id's will be different but everything else should be the same.</p>
  
  <p>I am using EF 6.</p>