What do you gain from upgrading NHibernate 1.2?

后端 未结 6 624
清酒与你
清酒与你 2021-01-18 17:48

I have one project using NHibernate 1.2. I know it\'s old, but I\'ve used it since I\'m working off NHibernate in Action, which targets that same version.

I\'ve been

6条回答
  •  囚心锁ツ
    2021-01-18 18:21

    With the 3.0.0 release, NHibernate includes support for LINQ, along with additional features such as:

    Along with a long list of bug fixes and improvements, it has several new features including

    • A new strongly typed criteria API called QueryOver
    • Lazy loading of columns
    • Alias delimiting in generated SQL
    • Support for DetachedCriteria within IStatelessSession.
    • Improved support for LINQ, overcoming the HQL limitations of the previous provider.

    Breaking change:

    • Upgrading users should be aware that one of the fixes means that null values in dictionaries are no longer silently ignored, which has the potential to break existing application code.

提交回复
热议问题