DataServiceContext Methods

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

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

NameDescription
System_CAPS_pubmethodAddLink(Object, String, Object)

Adds the specified link to the set of objects the DataServiceContext is tracking.

System_CAPS_pubmethodAddObject(String, Object)

Adds the specified object to the set of objects that the DataServiceContext is tracking.

System_CAPS_pubmethodAddRelatedObject(Object, String, Object)

Adds a related object to the context and creates the link that defines the relationship between the two objects in a single request.

System_CAPS_pubmethodAttachLink(Object, String, Object)

Notifies the DataServiceContext to start tracking the specified link that defines a relationship between entity objects.

System_CAPS_pubmethodAttachTo(String, Object)

Notifies the DataServiceContext to start tracking the specified resource and supplies the location of the resource within the specified resource set.

System_CAPS_pubmethodAttachTo(String, Object, String)

Notifies the DataServiceContext to start tracking the specified resource and supplies the location of the resource in the specified resource set.

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

System_CAPS_pubmethodBeginExecute<TElement>(Uri, AsyncCallback, Object)

Asynchronously sends the request so that this call does not block processing while waiting for the results from the service.

System_CAPS_pubmethodBeginExecuteBatch(AsyncCallback, Object, DataServiceRequest[])

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

System_CAPS_pubmethodBeginGetReadStream(Object, DataServiceRequestArgs, AsyncCallback, Object)

Asynchronously gets binary property data for the specified entity as a data stream along with the specified message headers.

System_CAPS_pubmethodBeginLoadProperty(Object, String, AsyncCallback, Object)

Asynchronously loads the value of the specified property from the data service.

System_CAPS_pubmethodBeginLoadProperty(Object, String, DataServiceQueryContinuation, AsyncCallback, Object)

Asynchronously loads the next page of related entities from the data service by using the supplied query continuation object.

System_CAPS_pubmethodBeginLoadProperty(Object, String, Uri, AsyncCallback, Object)

Asynchronously loads a page of related entities from the data service by using the supplied next link URI.

System_CAPS_pubmethodBeginSaveChanges(AsyncCallback, Object)

Asynchronously submits the pending changes to the data service collected by the DataServiceContext since the last time changes were saved.

System_CAPS_pubmethodBeginSaveChanges(SaveChangesOptions, AsyncCallback, Object)

Asynchronously submits the pending changes to the data service collected by the DataServiceContext since the last time changes were saved.

System_CAPS_pubmethodCancelRequest(IAsyncResult)

Attempts to cancel the operation that is associated with the supplied IAsyncResult object.

System_CAPS_pubmethodCreateQuery<T>(String)

Creates a data service query for data of a specified generic type.

System_CAPS_pubmethodDeleteLink(Object, String, Object)

Changes the state of the link to deleted in the list of links being tracked by the DataServiceContext.

System_CAPS_pubmethodDeleteObject(Object)

Changes the state of the specified object to be deleted in the DataServiceContext.

System_CAPS_pubmethodDetach(Object)

Removes the entity from the list of entities that the DataServiceContext is tracking.

System_CAPS_pubmethodDetachLink(Object, String, Object)

Removes the specified link from the list of links being tracked by the DataServiceContext.

System_CAPS_pubmethodEndExecute<TElement>(IAsyncResult)

Called to complete the BeginExecute<TElement>.

System_CAPS_pubmethodEndExecuteBatch(IAsyncResult)

Called to complete the BeginExecuteBatch.

System_CAPS_pubmethodEndGetReadStream(IAsyncResult)

Called to complete the asynchronous operation of retrieving a binary property as a stream.

System_CAPS_pubmethodEndLoadProperty(IAsyncResult)

Called to complete the BeginLoadProperty operation.

System_CAPS_pubmethodEndSaveChanges(IAsyncResult)

Called to complete the BeginSaveChanges operation.

System_CAPS_pubmethodEquals(Object)

Determines whether the specified object is equal to the current object.(Inherited from Object.)

System_CAPS_pubmethodExecute<T>(DataServiceQueryContinuation<T>)

Sends a request to the data service to retrieve the next page of data in a paged query result.

System_CAPS_pubmethodExecute<TElement>(Uri)

Sends a request to the data service to execute a specific URI.

System_CAPS_pubmethodExecuteBatch(DataServiceRequest[])

Submits a group of queries as a batch to the data service.

System_CAPS_protmethodFinalize()

Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.(Inherited from Object.)

System_CAPS_pubmethodGetEntityDescriptor(Object)

Gets the EntityDescriptor for the supplied entity object.

System_CAPS_pubmethodGetHashCode()

Serves as the default hash function. (Inherited from Object.)

System_CAPS_pubmethodGetLinkDescriptor(Object, String, Object)

Gets the LinkDescriptor for a specific link that defines the relationship between two entities.

System_CAPS_pubmethodGetMetadataUri()

Gets a URI of the location of .edmx metadata.

System_CAPS_pubmethodGetReadStream(Object)

Gets binary property data for the specified entity as a data stream.

System_CAPS_pubmethodGetReadStream(Object, DataServiceRequestArgs)

Gets binary property data for the specified entity as a data stream along with the specified message headers.

System_CAPS_pubmethodGetReadStream(Object, String)

Gets binary property data for the specified entity as a data stream, with the specified Accept message header.

System_CAPS_pubmethodGetReadStreamUri(Object)

Gets the URI that is used to return binary property data as a data stream.

System_CAPS_pubmethodGetType()

Gets the Type of the current instance.(Inherited from Object.)

System_CAPS_pubmethodLoadProperty(Object, String)

Loads deferred content for a specified property from the data service.

System_CAPS_pubmethodLoadProperty(Object, String, DataServiceQueryContinuation)

Loads the next page of related entities from the data service by using the supplied query continuation object.

System_CAPS_pubmethodLoadProperty(Object, String, Uri)

Loads a page of related entities by using the supplied next link URI.

System_CAPS_pubmethodLoadProperty<T>(Object, String, DataServiceQueryContinuation<T>)

Loads the next page of related entities from the data service by using the supplied generic query continuation object.

System_CAPS_protmethodMemberwiseClone()

Creates a shallow copy of the current Object.(Inherited from Object.)

System_CAPS_pubmethodSaveChanges()

Saves the changes that the DataServiceContext is tracking to storage.

System_CAPS_pubmethodSaveChanges(SaveChangesOptions)

Saves the changes that the DataServiceContext is tracking to storage.

System_CAPS_pubmethodSetLink(Object, String, Object)

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.

System_CAPS_pubmethodSetSaveStream(Object, Stream, Boolean, DataServiceRequestArgs)

Sets a new data stream as the binary property of an entity, with the specified settings in the request message.

System_CAPS_pubmethodSetSaveStream(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.

System_CAPS_pubmethodToString()

Returns a string that represents the current object.(Inherited from Object.)

System_CAPS_pubmethodTryGetEntity<TEntity>(Uri, TEntity)

Test retrieval of an entity being tracked by the DataServiceContext by reference to the URI of the entity.

System_CAPS_pubmethodTryGetUri(Object, Uri)

Retrieves the canonical URI associated with the specified entity, if available.

System_CAPS_pubmethodUpdateObject(Object)

Changes the state of the specified object in the DataServiceContext to Modified.

Return to top
Show: