IdeaBlade.EntityModel Assembly > IdeaBlade.EntityModel Namespace > EntityManager Class : RemoveEntity Method |
'Declaration
Public Sub RemoveEntity( _ ByVal entity As Object, _ Optional ByVal clearQueryCache As Nullable(Of Boolean) _ )
'Usage
Dim instance As EntityManager Dim entity As Object Dim clearQueryCache As Nullable(Of Boolean) instance.RemoveEntity(entity, clearQueryCache)
public void RemoveEntity( object entity, Nullable<bool> clearQueryCache )
The query cache should normally be cleared after removing an entity from the entity cache, since removing an entity can invalidate the usefulness of the query cache and lead to incorrect query results. You can choose not to clear the query cache if you know that removing the entity will not cause problems.
This does not delete the object from the backend data source. To delete an entity, use the IdeaBlade.EntityModel.Entity.Delete() method.
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2
EntityManager Class
EntityManager Members
IdeaBlade.EntityModel.Entity.RemoveFromManager