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) Version: 3.2.0.4000 (3.2.0.4000)

Syntax

C#
public ISessionFactory BuildSessionFactory()
Visual Basic
Public Function BuildSessionFactory As ISessionFactory
Visual C++
public:
ISessionFactory^ BuildSessionFactory()

Return Value

An ISessionFactory instance.

See Also