DataServiceContext.AttachTo Method

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 data service associated with the DataServiceContext.

Community Additions

ADD
Show: