C2: Castle Contribution
This repository contains the project
C2.Facilities.NH, which is a simple castle windsor facility for NHibernate integration.
Note that there is already a facility in the Castle repository for NHibernate integration, and it is officially supported, so check out that facility to see if it suits your needs better.
The official NHibernate integration facility version 2.0 RC has dependencies on the following assemblies:
- Castle.Core 22.214.171.124
- Castle.Services.Transactions 126.96.36.199
- Castle.Windsor 188.8.131.52
- NHibernate 184.108.40.20600
If you are able to stay with these older versions, then the official NHibernate integration facility might suit your purposes better that this one.
This facility has dependencies on the following assemblies:
- Castle.Core 220.127.116.1101
- Castle.Windsor 18.104.22.16801
- NHibernate 22.214.171.12400
Why Write another NHibernate integration facility?
I wrote this facility because I needed to upgrade to the latest version of Castle.Windsor to satisfy other dependencies in a project I was working on. This then turned into an attempt to upgrade to the latest version of Castle.Services.Transactions. This assembly has undergone significant revision between 2.5 and 3.0, and the 3.0 version is compiled against version 2.5 of Castle.Core and Castle.Windsor. It all got a bit too hard for me, especially since none of the other code I was using made any use of Castle transactions.
I know it seems like NIH syndrome, but I decided to write my own. At least it helped me to better understand how to write a castle windsor facility. I have made use of code from the official repository, as well as some good ideas from Henrik Feldt's Castle.Facilities.NHibernate facility. Thanks to Henrik and the other Castle project contributors.
There are some instructions at doc/instructions.md.
About the Castle Project
This product incorporates source code from the Castle Project.
More information on the Castle Project can be found at http://castleproject.org.