NPersistence Reference Guide
Remove the entity instance.

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

Syntax

   
 C# 
void Remove(
	Object entity
)

Parameters

entity
Object
entity instance

Exceptions

ExceptionCondition
System..::..ArgumentException if the instance is not an
NPersistence..::..TransactionRequiredException if invoked on a container-managed entity manager of type PersistenceContextType.TRANSACTION and there is no transaction

See Also