Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

DataContext.Refresh Method

 

Refreshes object state by using data in the database.

Namespace:   System.Data.Linq
Assembly:  System.Data.Linq (in System.Data.Linq.dll)

NameDescription
System_CAPS_pubmethodRefresh(RefreshMode, IEnumerable)

Refreshes a collection of entity objects according to the specified mode.

System_CAPS_pubmethodRefresh(RefreshMode, Object)

Refreshes an entity object according to the specified mode.

System_CAPS_pubmethodRefresh(RefreshMode, Object())

Refreshes an array of entity objects according to the specified mode.

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.

System_CAPS_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.

Return to top
Show:
© 2017 Microsoft