?
Solved

Why we need NHibernate?

Posted on 2012-08-30
5
Medium Priority
?
699 Views
Last Modified: 2012-08-30
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.
0
Comment
Question by:Easwaran Paramasivam
  • 3
  • 2
5 Comments
 
LVL 4

Accepted Solution

by:
TI2Heaven earned 1200 total points
ID: 38350047
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
 
LVL 16

Author Comment

by:Easwaran Paramasivam
ID: 38350058
As Entity Framework resides in ASP.NET why do we need NHibernate?
0
 
LVL 16

Author Comment

by:Easwaran Paramasivam
ID: 38350061
Please do provide more points.
0
 
LVL 4

Assisted Solution

by:TI2Heaven
TI2Heaven earned 1200 total points
ID: 38350220
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
 
LVL 16

Author Closing Comment

by:Easwaran Paramasivam
ID: 38353070
Thanks.
0

Featured Post

Hire Technology Freelancers with Gigs

Work with freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely, and get projects done right.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Exception Handling is in the core of any application that is able to dignify its name. In this article, I'll guide you through the process of writing a DRY (Don't Repeat Yourself) Exception Handling mechanism, using Aspect Oriented Programming.
In real business world data are crucial and sometimes data are shared among different information systems. Hence, an agreeable file transfer protocol need to be established.
We’ve all felt that sense of false security before—locking down external access to a database or component and feeling like we’ve done all we need to do to secure company data. But that feeling is fleeting. Attacks these days can happen in many w…
Please read the paragraph below before following the instructions in the video — there are important caveats in the paragraph that I did not mention in the video. If your PaperPort 12 or PaperPort 14 is failing to start, or crashing, or hanging, …
Suggested Courses
Course of the Month15 days, 21 hours left to enroll

850 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question