Create a new entity manager factory using the database context and the persistence configuration specified.

Namespace: Hypertable.Persistence
Assembly: ht4o (in ht4o.dll) Version: 0.9.8.11 (0.9.8.11)

Syntax

         
 C#  Visual Basic  Visual C++ 
public static EntityManagerFactory CreateEntityManagerFactory(
	IContext ctx,
	PersistenceConfiguration configuration
)
Public Shared Function CreateEntityManagerFactory ( _
	ctx As IContext, _
	configuration As PersistenceConfiguration _
) As EntityManagerFactory
public:
static EntityManagerFactory^ CreateEntityManagerFactory(
	IContext^ ctx, 
	PersistenceConfiguration^ configuration
)

Parameters

ctx
IContext
The existing database context.
configuration
PersistenceConfiguration
The persistence configuration.

Return Value

The newly created entity manager factory.

Remarks

The entity manager does not take ownership of the database context specified.

See Also