NetInverse Developers Blog

March 11, 2009
Category: .Net — Tags: , — admin @ 9:20 pm

NHibernate is an Object-relational mapping (ORM) solution for the Microsoft .NET platform. It is licensed under the GNU Lesser General Public License. It is a port of the popular Java O/R mapper Hibernate to .NET. Version 1.0 mirrors the feature set of Hibernate 2.1, adding a number of features from Hibernate 3. NHibernate 1.2.0, released May of 2007, introduces many more features from Hibernate 3 and support for .NET 2.0, stored procedures, generics and nullable types.

  1. All classes and collections with 1.2 are now loaded lazily by default. You may need to change lazy=”false”, or make methods be virtual.
  2. Use .Net 2.0 Generics for all collection interfaces (You no longer have to use the NHibernate.Generics compatability library).
  3. Support Batching for SQL Server - huge perforamance increase in some scenarios.
  4. Support Stored Procedures.
  5. Support named connection strings.
  6. Support SQL Server 2005 and SQL Server 2005 Everywhere dialects.
  7. Support Parametrized types and User Collection Types.
  8. Support projections in criteria queries, i.e. CreateCriteria(typeof(T)).Count(), and CreateCriteria(typeof(T)).Max(…), etc.
  9. New IL-based reflection optimizer - another big performance boost.
  10. Use SetProjection(Projections.Count(”ID”)) instead of IQuery’s Select count(*).
  11. New DetachedCriteria
  12. New GetCurrentSession method of SessionFactory: SessionFactory.GetCurrentSession()

You can click here to check out a list of .Net ORM products.

No Comments »

No comments yet.

RSS feed for comments on this post. TrackBack URL

Leave a comment

©2009 NetInverse. All rights reserved. Powered by WordPress