Share via


DataServiceContext.ExecuteBatch Method

Definition

Overloads

ExecuteBatch(DataServiceRequest[])

Synchronously submits a group of queries as a batch to the data service.

ExecuteBatch(SaveChangesOptions, DataServiceRequest[])

Synchronously submits a group of queries as a batch to the data service.

ExecuteBatch(DataServiceRequest[])

Synchronously submits a group of queries as a batch to the data service.

public virtual Microsoft.OData.Client.DataServiceResponse ExecuteBatch (params Microsoft.OData.Client.DataServiceRequest[] queries);
abstract member ExecuteBatch : Microsoft.OData.Client.DataServiceRequest[] -> Microsoft.OData.Client.DataServiceResponse
override this.ExecuteBatch : Microsoft.OData.Client.DataServiceRequest[] -> Microsoft.OData.Client.DataServiceResponse
Public Overridable Function ExecuteBatch (ParamArray queries As DataServiceRequest()) As DataServiceResponse

Parameters

queries
DataServiceRequest[]

Array of DataServiceRequest objects that make up the queries.

Returns

The response to the batch operation.

Applies to

ExecuteBatch(SaveChangesOptions, DataServiceRequest[])

Synchronously submits a group of queries as a batch to the data service.

public virtual Microsoft.OData.Client.DataServiceResponse ExecuteBatch (Microsoft.OData.Client.SaveChangesOptions options, params Microsoft.OData.Client.DataServiceRequest[] queries);
abstract member ExecuteBatch : Microsoft.OData.Client.SaveChangesOptions * Microsoft.OData.Client.DataServiceRequest[] -> Microsoft.OData.Client.DataServiceResponse
override this.ExecuteBatch : Microsoft.OData.Client.SaveChangesOptions * Microsoft.OData.Client.DataServiceRequest[] -> Microsoft.OData.Client.DataServiceResponse
Public Overridable Function ExecuteBatch (options As SaveChangesOptions, ParamArray queries As DataServiceRequest()) As DataServiceResponse

Parameters

options
SaveChangesOptions

A member of the SaveChangesOptions enumeration for how the client can save the pending set of changes.

queries
DataServiceRequest[]

Array of DataServiceRequest objects that make up the queries.

Returns

The response to the batch operation.

Applies to