问题描述
我有一个使用NHibernate 1.2的项目.我知道它已经很旧了,但是自从我正在使用面向相同版本的NHibernate in Action以来,我就使用了它.
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.
我一直在思考应该更新对该工具以及工具本身的理解.但是我不知道版本之间有什么区别.我知道2.1已经存在一段时间了,而3.0正在开发中.
I've been thinking I should update my understanding of the tool, as well as the tool itself. But I wonder what the differences are between versions. I know 2.1 has been current for some time, and that 3.0 is in the works.
迁移到NHibernate 2.1或3.0会获得,失去或改变什么好处或功能?
What benefits or features are gained, lost, or changed when moving to NHibernate 2.1 or 3.0?
推荐答案
动脑筋,混合使用2.X和3.0功能... LINQ支持,EventListeners(更强大的Interceptor),System.Transaction支持,泛型支持,多查询,将来的查询,SchemaUpdate(而不只是SchemaExport),更好的HQL解析器,以及许多错误修复.自NH 1.2以来,NHibernate世界发生了很多事情……
Off the top of my head and mixing 2.X and 3.0 features... LINQ support, EventListeners (more powerful Interceptors), System.Transaction support, generics support, multiquery, future queries, SchemaUpdate (rather than just SchemaExport), much better HQL parser, ... Plus numerous bug fixes. A lot has been going on in the NHibernate world since NH 1.2...
这篇关于您从NHibernate 1.2升级中学到了什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!