C# Class Spring.Data.NHibernate.DelegatingLocalSessionFactoryObject

Delegates to an implementation of ISessionFactory that can select among multiple instances based on thread local storage.
Inheritance: Spring.Data.NHibernate.LocalSessionFactoryObject
Datei anzeigen Open project: spring-projects/spring-net Class Usage Examples

Protected Methods

Method Description
NewSessionFactory ( NHibernate.Cfg.Configuration config ) : ISessionFactory

Subclasses can override this method to perform custom initialization of the SessionFactory instance, creating it via the given Configuration object that got prepared by this LocalSessionFactoryObject.

The default implementation invokes Configuration's BuildSessionFactory. A custom implementation could prepare the instance in a specific way, or use a custom ISessionFactory subclass.

PostProcessConfiguration ( NHibernate.Cfg.Configuration config ) : void

PostProcessConfiguration

Method Details

NewSessionFactory() protected method

Subclasses can override this method to perform custom initialization of the SessionFactory instance, creating it via the given Configuration object that got prepared by this LocalSessionFactoryObject.

The default implementation invokes Configuration's BuildSessionFactory. A custom implementation could prepare the instance in a specific way, or use a custom ISessionFactory subclass.

protected NewSessionFactory ( NHibernate.Cfg.Configuration config ) : ISessionFactory
config NHibernate.Cfg.Configuration
return ISessionFactory

PostProcessConfiguration() protected method

PostProcessConfiguration
protected PostProcessConfiguration ( NHibernate.Cfg.Configuration config ) : void
config NHibernate.Cfg.Configuration
return void