NHibernate proxy class, what should I choose?
What proxy class is best?
- NHibernate.ByteCode.LinFu.ProxyFactoryFactory
- NHibernate.ByteCode.Castle.ProxyFactoryFactory
- NHibernate.ByteCode.Spring.ProxyF开发者_如何学CactoryFactory
I've already used #1 & #2 and they behave equally apparently, no differences detected.
Extracted from nhforge.org blog:
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).
http://nhforge.org/blogs/nhibernate/archive/2008/11/09/nh2-1-0-bytecode-providers.aspx
精彩评论