Instantiate a new ISessionFactory, using the properties and mappings in this configuration. The ISessionFactory will be immutable, so changes made to the configuration after building the ISessionFactory will not affect it.

Namespace:  NHibernate.Cfg
Assembly:  NHibernate (in NHibernate.dll)

Syntax

Visual Basic (Declaration)
Public Function BuildSessionFactory As ISessionFactory
C#
public ISessionFactory BuildSessionFactory()
Visual C++
public:
ISessionFactory^ BuildSessionFactory()
JavaScript
function buildSessionFactory();

Return Value

An ISessionFactory instance.

See Also