title: How to Refresh DbContext
body: <p>I want to refresh all entities of my <code>DbContext</code> without recreating it, I tried the following and none of them make sense:</p>
  
  <pre><code>var context = ((IObjectContextAdapter)myDbContext).ObjectContext;
  
  var refreshableObjects = (from entry in context.ObjectStateManager.GetObjectStateEntries(
                                     EntityState.Added
                                     | EntityState.Deleted
                                     | EntityState.Modified
                                     | EntityState.Unchanged)
                            where entry.EntityKey != null
                            select entry.Entity);
  
  context.Refresh(RefreshMode.StoreWins, refreshableObjects);
  //.......................................................................
  foreach (var entry in this.Orm.ChangeTracker.Entries())
  {
      entry.State = EntityState.Unchanged;
  }
  this.Orm.ChangeTracker.DetectChanges();
  </code></pre>
  
  <p>And the only one which refreshes my <code>DbContext</code>:</p>
  
  <pre><code>foreach (var i in this.Orm.ChangeTracker.Entries())
      i.Reload();
  </code></pre>
  
  <p>But it's too slow. Can you help me choosing the right way?</p>