NPersistence Reference Guide
Remove the entity instance.

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

Collapse imageSyntax

   
 C# 
void Remove(
	Object entity
)

Parameters

entity
Object
entity instance

Collapse imageExceptions

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

Collapse imageSee Also