DataServiceContext Methods
.NET Framework 4
The DataServiceContext type exposes the following members.
| Name | Description | |
|---|---|---|
|
AddLink | Adds the specified link to the set of objects the DataServiceContext is tracking. |
|
AddObject | Adds the specified object to the set of objects that the DataServiceContext is tracking. |
|
AddRelatedObject | Adds a related object to the context and creates the link that defines the relationship between the two objects in a single request. |
|
AttachLink | Notifies the DataServiceContext to start tracking the specified link that defines a relationship between entity objects. |
|
AttachTo(String, Object) | Notifies the DataServiceContext to start tracking the specified resource and supplies the location of the resource within the specified resource set. |
|
AttachTo(String, Object, String) | Notifies the DataServiceContext to start tracking the specified resource and supplies the location of the resource in the specified resource set. |
|
BeginExecute<T>(DataServiceQueryContinuation<T>, AsyncCallback, Object) | Asynchronously sends a request to the data service to retrieve the next page of data in a paged query result. |
|
BeginExecute<TElement>(Uri, AsyncCallback, Object) | Asynchronously sends the request so that this call does not block processing while waiting for the results from the service. |
|
BeginExecuteBatch | Asynchronously submits a group of queries as a batch to the data service. |
|
BeginGetReadStream | Asynchronously gets binary property data for the specified entity as a data stream along with the specified message headers. |
|
BeginLoadProperty(Object, String, AsyncCallback, Object) | Asynchronously loads the value of the specified property from the data service. |
|
BeginLoadProperty(Object, String, DataServiceQueryContinuation, AsyncCallback, Object) | Asynchronously loads the next page of related entities from the data service by using the supplied query continuation object. |
|
BeginLoadProperty(Object, String, Uri, AsyncCallback, Object) | Asynchronously loads a page of related entities from the data service by using the supplied next link URI. |
|
BeginSaveChanges(AsyncCallback, Object) | Asynchronously submits the pending changes to the data service collected by the DataServiceContext since the last time changes were saved. |
|
BeginSaveChanges(SaveChangesOptions, AsyncCallback, Object) | Asynchronously submits the pending changes to the data service collected by the DataServiceContext since the last time changes were saved. |
|
CancelRequest | Attempts to cancel the operation that is associated with the supplied IAsyncResult object. |
|
CreateQuery<T> | Creates a data service query for data of a specified generic type. |
|
DeleteLink | Changes the state of the link to deleted in the list of links being tracked by the DataServiceContext. |
|
DeleteObject | Changes the state of the specified object to be deleted in the DataServiceContext. |
|
Detach | Removes the entity from the list of entities that the DataServiceContext is tracking. |
|
DetachLink | Removes the specified link from the list of links being tracked by the DataServiceContext. |
|
EndExecute<TElement> | Called to complete the BeginExecute. |
|
EndExecuteBatch | Called to complete the BeginExecuteBatch. |
|
EndGetReadStream | Called to complete the asynchronous operation of retrieving a binary property as a stream. |
|
EndLoadProperty | Called to complete the BeginLoadProperty operation. |
|
EndSaveChanges | Called to complete the BeginSaveChanges operation. |
|
Equals(Object) | Determines whether the specified Object is equal to the current Object. (Inherited from Object.) |
|
Execute<T>(DataServiceQueryContinuation<T>) | Sends a request to the data service to retrieve the next page of data in a paged query result. |
|
Execute<TElement>(Uri) | Sends a request to the data service to execute a specific URI. |
|
ExecuteBatch | Submits a group of queries as a batch to the data service. |
|
Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) |
|
GetEntityDescriptor | Gets the EntityDescriptor for the supplied entity object. |
|
GetHashCode | Serves as a hash function for a particular type. (Inherited from Object.) |
|
GetLinkDescriptor | Gets the LinkDescriptor for a specific link that defines the relationship between two entities. |
|
GetMetadataUri | Gets a URI of the location of .edmx metadata. |
|
GetReadStream(Object) | Gets binary property data for the specified entity as a data stream. |
|
GetReadStream(Object, DataServiceRequestArgs) | Gets binary property data for the specified entity as a data stream along with the specified message headers. |
|
GetReadStream(Object, String) | Gets binary property data for the specified entity as a data stream, with the specified Accept message header. |
|
GetReadStreamUri | Gets the URI that is used to return binary property data as a data stream. |
|
GetType | Gets the Type of the current instance. (Inherited from Object.) |
|
LoadProperty(Object, String) | Loads deferred content for a specified property from the data service. |
|
LoadProperty(Object, String, DataServiceQueryContinuation) | Loads the next page of related entities from the data service by using the supplied query continuation object. |
|
LoadProperty(Object, String, Uri) | Loads a page of related entities by using the supplied next link URI. |
|
LoadProperty<T>(Object, String, DataServiceQueryContinuation<T>) | Loads the next page of related entities from the data service by using the supplied generic query continuation object. |
|
MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) |
|
SaveChanges() | Saves the changes that the DataServiceContext is tracking to storage. |
|
SaveChanges(SaveChangesOptions) | Saves the changes that the DataServiceContext is tracking to storage. |
|
SetLink | Notifies the DataServiceContext that a new link exists between the objects specified and that the link is represented by the property specified by the sourceProperty parameter. |
|
SetSaveStream(Object, Stream, Boolean, DataServiceRequestArgs) | Sets a new data stream as the binary property of an entity, with the specified settings in the request message. |
|
SetSaveStream(Object, Stream, Boolean, String, String) | Sets a new data stream as the binary property of an entity. The specified Content-Type and Slug headers are included in the request message. |
|
ToString | Returns a string that represents the current object. (Inherited from Object.) |
|
TryGetEntity<TEntity> | Test retrieval of an entity being tracked by the DataServiceContext by reference to the URI of the entity. |
|
TryGetUri | Retrieves the canonical URI associated with the specified entity, if available. |
|
UpdateObject | Changes the state of the specified object in the DataServiceContext to Modified. |