本文介绍了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:

与谁一起工作 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代理类,我应该选择什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-19 18:38