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
Afficher le fichier Open project: spring-projects/spring-net Class Usage Examples

Méthodes protégées

Méthode 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 méthode

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
Résultat ISessionFactory

PostProcessConfiguration() protected méthode

PostProcessConfiguration
protected PostProcessConfiguration ( NHibernate.Cfg.Configuration config ) : void
config NHibernate.Cfg.Configuration
Résultat void