升级到nhibernate 3.1 [英] upgrade to nhibernate 3.1

查看:112
本文介绍了升级到nhibernate 3.1的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个使用NHibernate(2.2版)的项目.要升级到NHibernate 3.2,我该怎么办?

I have a project using NHibernate (version 2.2). For upgrade to NHibernate 3.2 , What should I do?

我需要在dll之后进行升级吗?

Do I need that upgrade following dlls?

  1. NHibernate.Linq.dll
  2. Iesi.Collections.dll
  3. Castle.Core.dll
  4. Castle.DynamicProxy2.dll
  5. Log4net.dll

我需要升级的HBM文件吗?我需要升级的hibernate.cfg.xml文件吗?

Do I need that upgrade hbm files? Do I need that upgrade hibernate.cfg.xml file?

推荐答案

  1. 升级到NH 3.2时,不再需要NHibernate.Linq.dll,但是用于获得LINQ支持的方法名称不是Linq<T>-现在是其Query<T> li>
  2. 您不需要更改hbm文件
  3. 您将需要更新Iesi.Collections程序集
  4. 您不需要castle.dynamic代理dll(您仍然可以使用它,但不再需要它)
  5. Log4Net是不再需要的
  6. 您可能需要将cfg文件更改为更改动态代理设置
  1. When upgrading to NH 3.2 you don't need NHibernate.Linq.dll anymore, but method name that is used to get LINQ support is not Linq<T> - its Query<T> now
  2. You don't need to change hbm files
  3. You will need to update Iesi.Collections assembly
  4. You don't need castle.dynamic proxy dll (you still can use it, but its not required anymore)
  5. Log4Net is not required anymore
  6. You will probably need to change your cfg file in order to change dynamic proxy settings

获取所有必需程序集的NH最新版本的最简单方法是使用 Nuget

The easiest way to get latest version of NH with all required assemblies is to use Nuget

这篇关于升级到nhibernate 3.1的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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