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

Inheritance: Rebel.Hive.ProviderSupport.AbstractEntityRepositoryFactory
Mostra file Open project: RebelCMS/rebelcmsxu5 Class Usage Examples

Public Methods

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

Protected Methods

Method 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

Method 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 method

protected CreateEntityRepository ( bool isReadOnly ) : AbstractEntityRepository
isReadOnly bool
return AbstractEntityRepository

DisposeResources() protected method

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

EntityRepositoryFactory() public method

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
return NHibernate

GetReadonlyRepository() public method

public GetReadonlyRepository ( ) : AbstractReadonlyEntityRepository
return AbstractReadonlyEntityRepository

GetRepository() public method

public GetRepository ( ) : AbstractEntityRepository
return AbstractEntityRepository