CreateEntityManager Method
NPersistence Reference Guide

Overload List

NameDescription
CreateEntityManager()()()()
Create a new application-managed EntityManager. This method returns a new EntityManager instance each time it is invoked. The isOpen method will return true on the returned instance.

Return Value

entity manager instance if the entity manager factory has been closed
CreateEntityManager(Dictionary<(Of <<'(Object, Object>)>>))
Create a new application-managed EntityManager with the specified Map of properties. This method returns a new EntityManager instance each time it is invoked. The isOpen method will return true on the returned instance. properties for entity manager

Return Value

entity manager instance if the entity manager factory has been closed

See Also