Proyecto Fin de Carrera 2011
Handles creation and management of sessions and transactions. It is a singleton because building the initial session factory is very expensive. Inspiration for this class came from Chapter 8 of Hibernate in Action by Bauer and King. Although it is a sealed singleton you can use TypeMock (http://www.typemock.com) for more flexible testing.

Namespace: NHibernate_SGF
Assembly: NHibernate_SGF (in NHibernate_SGF.dll) Versión: 1.0.0.0 (1.0.0.0)

Syntax

C#
public sealed class SessionManager
Visual Basic
Public NotInheritable Class SessionManager
Visual C++
public ref class SessionManager sealed

Inheritance Hierarchy

System..::..Object
  NHibernate_SGF..::..SessionManager

See Also