Redigera

Dela via


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();
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