Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

DataServiceContext.ExecuteBatch Method

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

Namespace:  System.Data.Services.Client
Assembly:  Microsoft.Data.Services.Client (in Microsoft.Data.Services.Client.dll)

public DataServiceResponse ExecuteBatch(
	params DataServiceRequest[] queries
)

Parameters

queries
Type: System.Data.Services.Client.DataServiceRequest[]
Array of DataServiceRequest objects that make up the queries.

Return Value

Type: System.Data.Services.Client.DataServiceResponse
The response to the batch operation.

The queries are specified as DataServiceRequest<TElement> instances. Returns a DataServiceResponse that represents the response of the batch request as a whole. Individual query responses are represented as individual OperationResponse objects that can be accessed by enumerating the DataServiceResponse instance.

When this method returns the whole HTTP response for the batch request has been read from the network stream, but the responses have not been processed. No identity resolution or object materialization occurs for a specified entity in the response until it is enumerated.

Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft