Spring.NET 1.3.0 RC1 for .NET 2.0 API Reference

LocalSessionFactoryObject.NewSessionFactory 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.

[Visual Basic]
Protected Overridable Sub NewSessionFactory( _
   ByVal config As Configuration _
protected virtual ISessionFactory NewSessionFactory(
   Configuration config

Return Value

The ISessionFactory instance.


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

See Also

LocalSessionFactoryObject Class | Spring.Data.NHibernate Namespace