NPersistence Reference Guide Close an application-managed entity manager.
After the close method has been invoked, all methods
on the EntityManager instance and any
Query and TypedQuery
objects obtained from it will throw the InvalidOperationException
except for getProperties,
getTransaction, and isOpen (which will return false).
If this method is called when the entity manager is
associated with an active transaction, the persistence
context remains managed until the transaction completes.
Namespace: NPersistenceAssembly: NPersistence (in NPersistence.dll) Version: 2.0.0.0 (2.0.0.0)
Syntax
Exceptions
Exception | Condition |
---|
System..::..InvalidOperationException | if the entity manager
is container-managed |
See Also