DataServiceContext.AttachTo Method
Windows Phone
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 | |
|---|---|---|
|
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 within the specified resource set. |
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.