upgrade to nhibernate 3.1
I have a project using NHibernate (version 2.2). For upgrade to NHibernate 3.2 , What should I do?
Do I need that upgrade following dlls?
- NHibernate.Linq.dll
- Iesi.Collections.dll
- Castle.Core.dll
- Castle.DynamicProxy2.dll
- Log4net.dll
Do I need that upgrade hbm files? Do I need that upgrade hibernate.cfg.xml file?
- 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>
- itsQuery<T>
now - You don't need to change hbm files
- You will need to update Iesi.Collections assembly
- You don't need castle.dynamic proxy dll (you still can use it, but its not required anymore)
- Log4Net is not required anymore
- You will probably need to change your cfg file in order to change dynamic proxy settings
The easiest way to get latest version of NH with all required assemblies is to use Nuget
upgrade the dlls and test your program, normally this should be enough
精彩评论