title: What is the correct usage of DataContext.Refresh()?
body: <p>I have a LinqToSql object in memory, whose field values on the database are expected to change during the lifetime of the object.  So periodically I need to check if everything is still in sync.  I was expecting to be able to do this like so:</p>
  
  <pre><code>myDataContext.Refresh(RefreshMode.KeepCurrentValues, myObj);
  </code></pre>
  
  <p>but unfortunately this seems to have no effect; the values on <code>myObj</code> remain the same even when the DB values have changed.  <a href="http://msdn.microsoft.com/en-us/library/system.data.linq.datacontext.refresh.aspx">MSDN documentation on this method</a> is pretty scant.  Can anyone tell me what I am missing here?</p>