title: Saving entity causes child entities to be saved too
body: <p>I am using entity framework 5. I want to save an entity without it automatically saving the child entities.</p>
  
  <p>For example, I have an entity <code>Refund</code>. This has child entities <code>List&lt;Voucher&gt;</code> and <code>Tourist</code>. Both <code>Voucher</code> and <code>Tourist</code> have <code>Country</code>. When I save <code>Refund</code> all the child entities are saved too. This is okay (although I'd rather do it manually), but when it comes to saving the <code>Country</code> it is adding a new country instead of referencing the existing one. </p>
  
  <p>So to get around this I need to set the Id property on the entities, but set the referencing object to null. For example, my <code>Tourist</code> has a country Id of 372 for Ireland. I set the countryId to 372, but set the <code>Tourist.Country</code> object to null before saving.</p>
  
  <p>Is there a way to configure Entity Framework so that it only saves the specific objects I tell it to save </p>
  
  <p>i.e. <code>dataContext.Add(refund); dataContext.Save()</code> only saves the refund and not the child entities.</p>