This post is an update of “Reference to Castle removed”.
In the trunk we had removed all dependency from any kind of “Proxy framework” trough various implementations of IProxyFactoryFactory.
There is not a specific default Proxy-framework and now the set of proxyfactory.factory_class property, of the session-factory configuration section, is mandatory (as the property dialect).
So far, two implementations of IProxyFactoryFactory are available :
Soon, we hope to have the availability of NHibernate.ByteCode.Spring.ProxyFactoryFactory.
For NHibernate testing purpose we are using LinFu without a special reason even if I have the impression that LinFu give us a very little performance improvement. For who are using NHibernate without an IoC framework LinFu.DynamicProxy is more than enough.
For who are working with Castle.ActiveRecord and/or Castle.Windsor, obviously, the best choice is Castle.DynamicProxy2 (mean NHibernate.ByteCode.Castle.ProxyFactoryFactory).
A minimal session-factory configuration, to work with NH using MsSQL and LinFu, should look like this one:
In this case you must confirm that your deployment folder contains : NHibernate.ByteCode.LinFu.dll
The same configuration for who want use Castle should look like this one:
In this case you must confirm that your deployment folder contains : NHibernate.ByteCode.Castle.dll
P.S. Let me say that something strange happened in my heart when I had remove the last reference to Castle in NH-Core and NH-Tests.