DataServiceContext.Detach(Object) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Removes the entity from the list of entities that the DataServiceContext is tracking.
public virtual bool Detach (object entity);
abstract member Detach : obj -> bool
override this.Detach : obj -> bool
Public Overridable Function Detach (entity As Object) As Boolean
Parameters
- entity
- Object
The tracked entity to be detached from the DataServiceContext.
Returns
Returns true if the specified entity was detached; otherwise false.
Exceptions
When entity
is null.