DataServiceContext.SaveChanges Method

Definition

Saves the changes the DataServiceContext is tracking to storage.

Overloads

SaveChanges()

Saves the changes that the DataServiceContext is tracking to storage.

SaveChanges(SaveChangesOptions)

Saves the changes that the DataServiceContext is tracking to storage.

Remarks

A DataServiceResponse that contains status, headers, and errors that result from the call to SaveChanges.

SaveChanges()

Saves the changes that the DataServiceContext is tracking to storage.

public System.Data.Services.Client.DataServiceResponse SaveChanges ();
Returns

A DataServiceResponse that contains status, headers, and errors that result from the call to System.Data.Services.Client.DataServiceContext.SaveChanges.Remarks.

SaveChanges(SaveChangesOptions)

Saves the changes that the DataServiceContext is tracking to storage.

public System.Data.Services.Client.DataServiceResponse SaveChanges (System.Data.Services.Client.SaveChangesOptions options);
Parameters
options
SaveChangesOptions

A member of the MergeOption enumeration that specifies the materialization option.

Returns

A DataServiceResponse that contains status, headers, and errors that result from the call to SaveChanges().

Remarks

Operations are sent to the data service in the following order

  1. DeleteLink

  2. DeleteObject

  3. UpdateObject

  4. AddObject

  5. SetLink and AddLink

Applies to