Take the 2-minute tour ×
Programmers Stack Exchange is a question and answer site for professional programmers interested in conceptual questions about software development. It's 100% free, no registration required.

I have no knowledge of Entity Framework and NHibernate but definitely want to learn. I want to know how to start. Whether to first read documentation of NHibernate or the default Visual Studio Entity Framework?

Is Microsoft's Entity Framework a variant of NHibernate?

share|improve this question
4  
EF is not a variant of nHibernate, it's completely separate, but they are competing products that fill the same role. –  Steve Evers Nov 26 '10 at 15:10
add comment

2 Answers

up vote 5 down vote accepted

This is personal opinion, and I must tell you I'm a huge fan of nHibernate.

I'm interested in all Microsoft's initiatives to standardize things. This include in ORM.

When they released the first version of Entity Framework, they were critized enough to call what happened The ADO.NET Entity Framework Saga. Read that blog post and all the link it points to.

Soon after that, the team leader of the project agreed that it got it wrong (I can't find his original blog post, maybe it has been removed).

Today EF framework is very close to nHibernate and I will consider it again in the future because:

  • Just like Unit Testing, MVC, Ajax, ... EF will eventually become the standard.
  • EF is commercially supported
  • nHibernate is powerful, but has only a few contributors.

While I'm too familiar with nHibernate to switch today, I would recommend you to go for Entity Framework without any hesitation.

share|improve this answer
    
Here I would recommend reading this article: realworldsa.dotnetdevelopersjournal.com/… –  RPK Nov 26 '10 at 14:48
    
@RPK: I agree with what is described in the article. –  user2567 Nov 26 '10 at 15:11
    
@RPK the link you mention is dead. Could you give us other working link? –  eriawan Dec 28 '12 at 2:42
add comment
  1. Pick up Julia Lermans book "Entity Framework" and read it.

No, EF is not connected to nhibernate in any other way than that the two frameworks cover about the same business domain.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.