NPersistence Reference Guide
Remove the given entity from the persistence context, causing a managed entity to become detached. Unflushed changes made to the entity if any (including removal of the entity), will not be synchronized to the database. Entities which previously referenced the detached entity will continue to reference it.

Namespace: NPersistence
Assembly: NPersistence (in NPersistence.dll) Version: 2.0.0.0 (2.0.0.0)

Syntax

   
 C# 
void Detach(
	Object entity
)

Parameters

entity
Object
entity instance

Exceptions

ExceptionCondition
System..::..ArgumentException if the instance is not an entity

See Also