-
Notifications
You must be signed in to change notification settings - Fork 23
Home
The NHibernate facility slots into NHibernate and Castle AutoTx facility for LTM-transactions perfectly. Sessions resolved with Func<ISession>
or ISessionManager.OpenSession()
within a transaction are disposed at the end of the transaction. As such, you can perform reads with a new session in a new transaction, even if a transactional write failed before your read. This pattern is very hard to realise with Session-Per-Request.
This facility integrates the previous two facilities with NHibernate (download it here) to provide a previously unmatched level of developer comfort. Are you already using FluentNHibernate? Don't worry! It was built for Fluent; wrap your Fluently.Configure()-call in an INHibernateInstaller-interface, and you're off! Transactions galore!
NHibernate Facility is written from the ground up to use the rewritten Transaction and AutoTx projects; as such it replaces NHibernateIntegration Facility.