Creates ISessions.
Namespace: NHibernateAssembly: NHibernate (in NHibernate.dll) Version: 3.2.0.4000 (3.2.0.4000)
Syntax
| C# |
|---|
public interface ISessionFactory : IDisposable |
| Visual Basic |
|---|
Public Interface ISessionFactory _ Inherits IDisposable |
| Visual C++ |
|---|
public interface class ISessionFactory : IDisposable |
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