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: NPersistenceAssembly: NPersistence (in NPersistence.dll) Version: 2.0.0.0 (2.0.0.0)
Syntax
void Detach(
Object entity
)
Parameters
- entity
- Object
entity instance
Exceptions
Exception | Condition |
---|
System..::..ArgumentException | if the instance is not an
entity |
See Also