EntityAspectDetach Method Breeze.sharp
Removes the entity from the EntityManager cache.

Namespace: Breeze.Sharp
Assembly: Breeze.Sharp (in Breeze.Sharp.dll) Version: (

public bool Detach()

Return Value

Type: Boolean

The Entity will be in a "detached" state after the remove. RemoveFromManager and RemoveEntity(Entity) can be used interchangeably. Calling RemoveFromManager also clears the EntityManager's [!:Breeze.Sharp.EntityManager.QueryCache].

This does not delete the object from the backend server. To delete an entity, use the Delete method.

See Also