DataServiceContext.SaveChanges Method

Definition

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).

Applies to