ADO.NET Entity Framework vs NHibernate

Thus, the Entity Framework ADO.NET got a little bad press (in the form of blog entries and a petition), but I do not want to rush to judgment. I am limited in time for experiments, but I was wondering, did anyone work with him with even more empirical feedback?

Finally, what we think about using NHibernate, which has been around for a long time and may be more mature than the ADO.NET Entity Framework.

+35
orm entity-framework nhibernate
Aug 20 '08 at 14:48
source share
7 answers

NHibernate may be more mature. This does not necessarily mean that it is the “best” solution. Using it at my work for some time, I personally would prefer to use almost everything than NHibernate (even direct SQL if migration was a remote feature). The number of error messages generated by NHibernate that mean nothing (or mean something, but should never happen) is absolutely staggering, as are some of its default behavior (for example, clears the session once for each object returned in Find).

Personally, when I have a choice, I use LINQ to SQL to work with the database.

+13
Aug 20 '08 at 15:11
source share

If null configuration is the main advantage of SubSonic, you can look at Free nHibernate or Entity Framework Code-First

UPDATE of Răzvan Panda: Fluent NHibernate is deprecated in most cases by enabling code display in NHibernate itself, see notherdev.blogspot.ie/2012/02/

+12
Aug 19 '09 at 6:59
source share

It has been 2 years since publication. From what I understand, the ADO.NET Entity Framework has matured with .net 4. Does anyone have any new feedback on this topic?

Here's a link to improvements added to EF since its first release in 2008 http://blogs.msdn.com/b/adonet/archive/2009/05/11/update-on-the-entity-framework-in-net- 4-and-visual-studio-2010.aspx

Update: I found this thread on stack overflow, which discusses the updated EF pretty well:

Entity Framework 4 vs NHibernate

+6
Feb 24 2018-11-21T00:
source share

Microsoft has all recognized that the ADO.Net Entity Framework is not an ORM (I cannot find the link at this time). Therefore, if you think of the Entity Framework as a query mechanism, then it seems to be really good at what it does. For a complete ORM solution, you might want to look elsewhere.

The following blog post seems to confirm this difference:

http://blogs.msdn.com/dsimmons/archive/2008/05/17/why-use-the-entity-framework.aspx

+4
Aug 20 '08 at 15:04
source share

I used SubSonic, LinqToSql, LinqToEntities. Now I'm trying NHibernate. At the moment - I like NHibernate (probably because I did not satisfy the problems enough). The worst of them is LinqToEntities (this is just my opinion, of course).

+3
May 12 '09 at 8:54 a.m.
source share

I have a problem with SubSonic. SubSonic suffocated from tables with the same name, but with a different scheme. I do not want to discuss the best practices of creating a database because I did not call to do this. (When it comes to raising your voice, make a bet and do this work, I would rather keep my work.))

0
Apr 30 '09 at 22:35
source share

I come to sympathy for Entity. It takes some time to understand what all of his error messages mean, but once you get used to it, this is really great work. The biggest flaw he has now is not real support for disconnecting.

0
Jun 24 '09 at 14:45
source share



All Articles