title: Entity Framework Update Problem When applying current values
body: <p>This code is giving an error when trying to update the database </p>
  
  <blockquote>
    <p>Error:An object with a key that
    matches the key of the supplied object
    could not be found in the
    ObjectStateManager. Verify that the
    key values of the supplied object
    match the key values of the object to
    which changes must be applied.</p>
  </blockquote>
  
  <pre><code> public void UpdateAccuralSettings(SystemTolerance updatedObject)
  
      {
          _source.SystemTolerances.ApplyCurrentValues(updatedObject);
          _source.SaveChanges();
  
      }
  </code></pre>