Why we need NHibernate?

I'm working in a maintenance project where as NHibernate is used in that. One of my interview question was why we should go for NHibernate? Could you please describe in detail?

Thanks.
LVL 16
Easwaran ParamasivamAsked:
Who is Participating?
 
TI2HeavenCommented:
NHibernate is a tool for ORM design pattern and alternative is to use Entity Framework from Microsoft.
People who love DDBB will hate ORM design pattern, people who love to code will love ORM design pattern because of the promises of using DDBBs without a SQL language line (DDBB abstraction).
0
 
Easwaran ParamasivamAuthor Commented:
As Entity Framework resides in ASP.NET why do we need NHibernate?
0
 
Easwaran ParamasivamAuthor Commented:
Please do provide more points.
0
 
TI2HeavenCommented:
As I love DDBB a consider ORM design pattern a stupidity.  In both alternatives sometimes you need to cheat yourself and make use of SQL language to write an efficient code. As ORM in not an interface definition, you cannot switch from Entity Framework to NHibernate. There is a standard SQL language to make simple the switch from one engine to another. But DDBB developers will find impossible to keep in the standard to do certain things. I would only use ORM design for RAD (rapid application development) and I would choose the one makes it simple. I don’t have experience with anyone and a only study Entity Framework so a can’t tell the differences but keep in mind that Entity Framework environment is still changing and If you need to update a project from the old environment to a new one you need to drop almost everything related with Entiy Framework and start again. Keep a separate assembly with Entity Framework code and try to keep this assembly as small as possible.
0
 
Easwaran ParamasivamAuthor Commented:
Thanks.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.