NPersistence Reference Guide
Merge the state of the given entity into the current persistence context.

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

Syntax

   
 C# 
T Merge<T>(
	T entity
)
where T : class

Parameters

entity
T
entity instance

Type Parameters

T

Return Value

the managed instance that the state was merged to

Exceptions

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

See Also