Creates a built in Entity Persister or a custom Persister.

Namespace:  NHibernate.Persister
Assembly:  NHibernate (in NHibernate.dll)

Syntax

Visual Basic (Declaration)
Public Shared Function CreateClassPersister ( _
	model As PersistentClass, _
	cache As ICacheConcurrencyStrategy, _
	factory As ISessionFactoryImplementor, _
	cfg As IMapping _
) As IEntityPersister
C#
public static IEntityPersister CreateClassPersister(
	PersistentClass model,
	ICacheConcurrencyStrategy cache,
	ISessionFactoryImplementor factory,
	IMapping cfg
)
Visual C++
public:
static IEntityPersister^ CreateClassPersister(
	PersistentClass^ model, 
	ICacheConcurrencyStrategy^ cache, 
	ISessionFactoryImplementor^ factory, 
	IMapping^ cfg
)
JavaScript
NHibernate.Persister.PersisterFactory.createClassPersister = function(model, cache, factory, cfg);

See Also