NPersistence Reference Guide Merge the state of the given entity into the
current persistence context.
Namespace: NPersistenceAssembly: NPersistence (in NPersistence.dll) Version: 2.0.0.0 (2.0.0.0)
Syntax
T Merge<T>(
T entity
)
where T : class
Parameters
- entity
- T
entity instance
Type Parameters
Return Value
the managed instance that the state was merged to
Exceptions
Exception | Condition |
---|
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