Creates ISessions.

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

Syntax

Visual Basic (Declaration)
Public Interface ISessionFactory _
	Implements IDisposable
C#
public interface ISessionFactory : IDisposable
Visual C++
public interface class ISessionFactory : IDisposable
JavaScript
NHibernate.ISessionFactory = function();
NHibernate.ISessionFactory.createInterface('NHibernate.ISessionFactory');

Remarks

Usually an application has a single SessionFactory. Threads servicing client requests obtain ISessions from the factory. Implementors must be threadsafe.

ISessionFactorys are immutable. The behaviour of a SessionFactory is controlled by properties supplied at configuration time. These properties are defined on Environment

See Also