ObjectContext.Refresh Method (RefreshMode, IEnumerable)
Updates a collection of objects in the object context with data from the data source.
Assembly: System.Data.Entity (in System.Data.Entity.dll)
This method has the dual purpose of allowing objects in the object context to be refreshed with data from the data source, and being the mechanism by which conflicts can be resolved. For more information, see Saving Changes and Managing Concurrency (Entity Framework).
The order in which objects are refreshed is nondeterministic.
After Refresh is called, the object’s original values will always be updated with the data source value, but the current values might or might not be updated with the data source value. This depends on the RefreshMode value. The StoreWins mode means that the objects in the collection should be updated to match the data source values. ClientWins means that only the changes in the object context will be persisted, even if there have been other changes in the data source.