NHibernate 3.2或以上的版本就没有 NHibernate.ByteCode.Castle.dll,NHibernate.ByteCode.LinFu.dll, NHibernate.Byt

来源:互联网 发布:重庆软件测试招聘 编辑:程序博客网 时间:2024/06/05 10:23
  

NHibernate 3.2或以上的版本就没有
 NHibernate.ByteCode.Castle.dll,

NHibernate.ByteCode.LinFu.dll, NHibernate.ByteCode.Spring.dll 这三个DLL了,
 

hibernate.cfg.xml 配置文件中的 proxyfactory.factory_class要修改如下: 
 
 <property name="proxyfactory.factory_class">NHibernate.Bytecode.DefaultProxyFactoryFactory, NHibernate</property>  
不然会报错。

Nhibernate各个版本下载: 
http://jaist.dl.sourceforge.net/project/nhibernate/NHibernate/
可以下载一个3.1版本的,3.2版本,解压出来就知道了。

相关文章: http://stackoverflow.com/questions/8286936/nhibernate-bytecode-linfu-dll-for-nhibernate-3-2?rq=1