开发者

NHibernate proxy class, what should I choose?

开发者 https://www.devze.com 2023-01-23 19:35 出处:网络
What proxy class is best? NHibernate.ByteCode.LinFu.ProxyFactoryFactory NHibernate.ByteCode.Castle.ProxyFactoryFactory

What proxy class is best?

  1. NHibernate.ByteCode.LinFu.ProxyFactoryFactory
  2. NHibernate.ByteCode.Castle.ProxyFactoryFactory
  3. 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

0

精彩评论

暂无评论...
验证码 换一张
取 消