This topic has not yet been rated - Rate this topic

DataServiceContext.AttachTo Method

March 22, 2012

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

This member is overloaded. For complete information about this member, including syntax, usage, and examples, click a name in the overload list.

  Name Description
Public method AttachTo(String, Object) Notifies the DataServiceContext to start tracking the specified resource and supplies the location of the resource within the specified resource set.
Public method AttachTo(String, Object, String) Notifies the DataServiceContext to start tracking the specified resource and supplies the location of the resource within the specified resource set.
Top

If the entity is part of an object graph, this operation does not traverse the graph to add related objects. It is a shallow operation.

The method does not validate whether the specified entity set exists in the OData service associated with the DataServiceContext.

Did you find this helpful?
(1500 characters remaining)