NHibernate代理类,我应该选择什么? [英] NHibernate proxy class, what should I choose?

查看:91
本文介绍了NHibernate代理类,我应该选择什么?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

哪种代理类最好?

  1. NHibernate.ByteCode.LinFu.ProxyFactoryFactory
  2. NHibernate.ByteCode.Castle.ProxyFactoryFactory
  3. NHibernate.ByteCode.Spring.ProxyFactoryFactory

推荐答案

我已经使用过#1& #2,它们的行为看似均等,没有发现差异.

I've already used #1 & #2 and they behave equally apparently, no differences detected.

摘自nhforge.org博客:

Extracted from nhforge.org blog:

我们是 无需特殊原因即可使用LinFu 即使我有印象 林富给了我们一点 性能改进.对于谁 在没有IoC的情况下使用NHibernate 框架LinFu.DynamicProxy更 绰绰有余.

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.

与谁一起工作 Castle.ActiveRecord和/或 Castle.Windsor,显然是最好的 选择是Castle.DynamicProxy2(平均 NHibernate.ByteCode.Castle.ProxyFactoryFactory).

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

这篇关于NHibernate代理类,我应该选择什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆