CreateEntityManagerFactory Method (String, Dictionary)
NPersistence Reference Guide
Create and return an EntityManagerFactory for the named persistence unit using the given properties.

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

Syntax

   
 C# 
public static EntityManagerFactory CreateEntityManagerFactory(
	string persistenceUnitName,
	Dictionary<Object, Object> properties
)

Parameters

persistenceUnitName
String
the name of the persistence unit
properties
Dictionary<(Of <(<'Object, Object>)>)>
Additional properties to use when creating the factory. The values of these properties override any values that may have been configured elsewhere.

Return Value

the factory that creates EntityManagers configured according to the specified persistence unit.

See Also