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

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

Syntax

   
 C# 
EntityManagerFactory CreateEntityManagerFactory(
	string emName,
	Dictionary<Object, Object> map
)

Parameters

emName
String
the name of the persistence unit
map
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