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.
Overloads
SaveChanges() |
Saves the changes that the DataServiceContext is tracking to storage. |
SaveChanges(SaveChangesOptions) |
Saves the changes that the DataServiceContext is tracking to storage. |
SaveChanges()
Saves the changes that the DataServiceContext is tracking to storage.
public virtual Microsoft.OData.Client.DataServiceResponse SaveChanges ();
abstract member SaveChanges : unit -> Microsoft.OData.Client.DataServiceResponse
override this.SaveChanges : unit -> Microsoft.OData.Client.DataServiceResponse
Public Overridable 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 virtual Microsoft.OData.Client.DataServiceResponse SaveChanges (Microsoft.OData.Client.SaveChangesOptions options);
abstract member SaveChanges : Microsoft.OData.Client.SaveChangesOptions -> Microsoft.OData.Client.DataServiceResponse
override this.SaveChanges : Microsoft.OData.Client.SaveChangesOptions -> Microsoft.OData.Client.DataServiceResponse
Public Overridable Function SaveChanges (options As SaveChangesOptions) As DataServiceResponse
Parameters
- options
- SaveChangesOptions
A member of the SaveChangesOptions enumeration for how the client can save the pending set of changes.
Returns
A DataServiceResponse that contains status, headers, and errors that result from the call to SaveChanges(SaveChangesOptions).