C# (CSharp) UCDArch.Data.NHibernate Namespace

Nested Namespaces

UCDArch.Data.NHibernate.Fluent
UCDArch.Data.NHibernate.Mapping

Classes

Name Description
DbContext
NHibernateSessionManager 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.
NHibernateSessionManager.Nested Assists with ensuring thread-safe, lazy singleton