Nhibernate update


there is a project using nhibernate v2.1, and I wondered if v3 is backward compatible with 2.1?


I mean, if I omitted dll v2.1 and replaced it with dll v3, will all the code work?

thnx for your opinion.

+4
source share
2 answers

Just made a move recently. Unlike when you need to upgrade from 1.2 to 2.0, there were no changes. In fact, we did not have to change anything in our code when we upgraded from 2.1.2 GA to 3.0

However, there are some irregularities that can be seen in the release notes that accompany the download.

In connection with the question you asked in the NHibernate DLL:

NHibernate depends on log4net, Castle, Iesi.Collections, etc., so when you update, make sure these libraries are also correct. We can easily handle this by positioning the downlaoded NHibernate binaries in the "lib" repository, and all projects that need NHibernate reference NHibernate.dll in the NHibernate lib folder. This then solves the dependency problem, since all other necessary NHibernate dependencies are already in place in the same folder as the default NHibernate.dll.

+6
source

It is almost compatible. If you have not used linq. Read the realease information, a list of interrupt changes.

+1
source

Source: https://habr.com/ru/post/1345523/


All Articles