title: Repository Pattern
body: <p>I've got a quick question regarding the use of repositories. But the best way to ask is to show a bit of pseudocode and you guys tell me what the result should be</p>
  
  <ul>
  <li><p>Get a record from the repository with ID of 1 (assume it exists)</p></li>
  <li><p>Edit a couple of properties</p></li>
  <li><p>Query the repository again for an item with ID of 1</p></li>
  <li><p>Result = ??</p></li>
  </ul>
  
  <p>Should I get the object with updated values or the object without (original state), bearing in mind that since updating the values of properties (step 2) I have not told the repository to update this record.</p>
  
  <p>I think I should get a copy of the original item and not a reference to the edited version.</p>
  
  <p>Please tell me what is correct.</p>
  
  <p>Cheers</p>