Share this with your friends 

What is NHibernate in asp.net ?

7 ratings Views 932 
Author: m_589ff43f (m manoj)  View Profile |  View other solutions by this author

Question / Problem

What is NHibernate?What are the Advantage and Disadvantage of NHibernate?


NHibernate is a port of Hibernate for Java to the .NET Framework. It handles persisting plain .NET objects to and from an underlying relational database.In other way,It is mapping a data representation from an object model to a relational data model in a .NET-environment

Advandage of NHibernate
1.Open source
2.Based on widely approved patterns
3.NH is not code-generator
4.Support for "conversations" - NHibernate supports long-lived persistence contexts, detach/reattach of objects, and takes care of optimistic locking automatically
5.Natural programming model - NHibernate supports natural OO idiom; inheritance, polymorphism, composition and the .NET collections framework, including generic collections.
6.Flexible and very powerful mapping capabilities.

Disadvandage of NHibernate
1.May reduce your knowledge of SQL
2.Half-done LINQ support
3.Low performance
4.Increased startup time due to metadata preparation
5.Huge learning curve without orm background.

Applies to

Asp.Net 2.0

Rank It

Login to rank it