title: The object cannot be deleted because it was not found in the ObjectStateManager
body: <p>I have this code which normally works:</p>
  
  <pre><code>db.myTable.DeleteObject(myCurrent);
  </code></pre>
  
  <p>And I got this error:</p>
  
  <pre><code>The object cannot be deleted because it was not found in the ObjectStateManager.
  </code></pre>
  
  <p>The same ingredients IS in the table in the database.</p>
  
  <p>I tried this:</p>
  
  <pre><code>db.myTable.Attach(myCurrent);
  db.myTable.DeleteObject(myCurrent);
  </code></pre>
  
  <p>And I got another error: </p>
  
  <pre><code>An entity object cannot be referenced by multiple instances of IEntityChangeTracker. 
  </code></pre>
  
  <p>How to fix this?</p>