NPersistence Reference Guide
Called by Persistence class when an EntityManagerFactory is to be created.

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


EntityManagerFactory CreateEntityManagerFactory(
	string emName,
	Dictionary<Object, Object> map


the name of the persistence unit
Dictionary<(Of <(<'Object, Object>)>)>
a Map of properties for use by the persistence provider. These properties may be used to override the values of the corresponding elements in the persistence.xml file or specify values for properties not specified in the persistence.xml (and may be null if no properties are specified).

Return Value

EntityManagerFactory for the persistence unit, or null if the provider is not the right provider

See Also