Note

Access to this page requires authorization. You can try signing in or .

Access to this page requires authorization. You can try .

DataServiceContext.SaveChanges Method

Definition

Namespace:
System.Data.Services.Client
Assembly:
System.Data.Services.Client.dll

Important

Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.

Saves the changes the DataServiceContext is tracking to storage.

Overloads

Name Description
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();
public System.Data.Services.Client.DataServiceResponse SaveChanges();
member this.SaveChanges : unit -> System.Data.Services.Client.DataServiceResponse
Public Function SaveChanges () As DataServiceResponse

Returns

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

Applies to

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);
public System.Data.Services.Client.DataServiceResponse SaveChanges(System.Data.Services.Client.SaveChangesOptions options);
member this.SaveChanges : System.Data.Services.Client.SaveChangesOptions -> System.Data.Services.Client.DataServiceResponse
Public Function SaveChanges (options As SaveChangesOptions) As DataServiceResponse

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


Feedback

Was this page helpful?