Click to Rate and Give Feedback
MSDN
MSDN Library
.NET Development
.NET Framework 3.5
DataContext Class
Refresh Method

  Switch on low bandwidth view
Members FilterMembers Filter
Frameworks FilterFrameworks Filter
.NET Framework Class Library
DataContext..::.Refresh Method

Refreshes object state by using data in the database.

  NameDescription
Public methodRefresh(RefreshMode, IEnumerable)Refreshes a collection of entity objects according to the specified mode.
Public methodRefresh(RefreshMode, Object)Refreshes an entity object according to the specified mode.
Public methodRefresh(RefreshMode, array<Object>[]()[])Refreshes an array of entity objects according to the specified mode.
Top

This method is useful after an optimistic concurrency error to bring items into a state for another attempt. It updates the state of the primitive fields and properties on the objects.

NoteNote:

If an object is on the many side of a one-to-many relationship, the foreign key on the object will be set and the object pointer for the other side of the relationship will be set to the new value.

Tags What's this?: Add a tag
Community Content   What is Community Content?
Add new content RSS  Annotations
Processing
© 2009 Microsoft Corporation. All rights reserved. Terms of Use  |  Trademarks  |  Privacy Statement
Page view tracker