C# Class Rebel.Framework.Persistence.NHibernate.EntityRepositoryFactory

Inheritance: Rebel.Hive.ProviderSupport.AbstractEntityRepositoryFactory
Afficher le fichier Open project: RebelCMS/rebelcmsxu5 Class Usage Examples

Méthodes publiques

Méthode Description
EntityRepositoryFactory ( ProviderMetadata providerMetadata, AbstractRevisionRepositoryFactory revisionRepositoryFactory, AbstractSchemaRepositoryFactory schemaRepositoryFactory, IFrameworkContext frameworkContext, ProviderDependencyHelper dependencyHelper ) : NHibernate
GetReadonlyRepository ( ) : AbstractReadonlyEntityRepository
GetRepository ( ) : AbstractEntityRepository

Méthodes protégées

Méthode Description
CreateEntityRepository ( bool isReadOnly ) : AbstractEntityRepository
DisposeResources ( ) : void

Handles the disposal of resources. Derived from abstract class DisposableObject which handles common required locking logic.

Private Methods

Méthode Description
EntityRepositoryFactory ( ProviderMetadata providerMetadata, AbstractRevisionRepositoryFactory revisionRepositoryFactory, AbstractSchemaRepositoryFactory schemaRepositoryFactory, IFrameworkContext frameworkContext, ISession singleProvidedSession, bool leaveSessionOpenOnDispose ) : NHibernate

Initializes a new instance of the EntityRepositoryFactory class. This constructor is used internally for unit testing where a single session must be used irrespective of the NHibernate session factory mechanisms.

Method Details

CreateEntityRepository() protected méthode

protected CreateEntityRepository ( bool isReadOnly ) : AbstractEntityRepository
isReadOnly bool
Résultat AbstractEntityRepository

DisposeResources() protected méthode

Handles the disposal of resources. Derived from abstract class DisposableObject which handles common required locking logic.
protected DisposeResources ( ) : void
Résultat void

EntityRepositoryFactory() public méthode

public EntityRepositoryFactory ( ProviderMetadata providerMetadata, AbstractRevisionRepositoryFactory revisionRepositoryFactory, AbstractSchemaRepositoryFactory schemaRepositoryFactory, IFrameworkContext frameworkContext, ProviderDependencyHelper dependencyHelper ) : NHibernate
providerMetadata Rebel.Framework.Persistence.ProviderSupport._Revised.ProviderMetadata
revisionRepositoryFactory AbstractRevisionRepositoryFactory
schemaRepositoryFactory AbstractSchemaRepositoryFactory
frameworkContext IFrameworkContext
dependencyHelper Rebel.Hive.ProviderSupport.ProviderDependencyHelper
Résultat NHibernate

GetReadonlyRepository() public méthode

public GetReadonlyRepository ( ) : AbstractReadonlyEntityRepository
Résultat AbstractReadonlyEntityRepository

GetRepository() public méthode

public GetRepository ( ) : AbstractEntityRepository
Résultat AbstractEntityRepository