Creates a built in Entity Persister or a custom Persister.
Namespace:
NHibernate.PersisterAssembly: 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); |
Parameters
- model
- Type: NHibernate.Mapping..::.PersistentClass
- factory
- Type: NHibernate.Engine..::.ISessionFactoryImplementor
- cfg
- Type: NHibernate.Engine..::.IMapping