DataServiceContext.SaveChanges Method
Definition
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
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