Devlico.Us
CodeBetter.Com
RSS 2.0 via Feedburner
           Do you Twitter? Follow us @devlicious

.NET & Funky Fresh

Check out the WPF book CB and I authored!


Why EF?

Danny Simmons has a post on why to use Entity Framework.  Here's my main gripe with Danny's post and all other such posts on EF.  Microsoft keeps waxing on about how EF is so much more than an object relational mapper, but in reality it is still so much less than nHibernate, which has become the de facto standard for O/R M.  So how can it be more when it is less?  I understand that Microsoft has a grand vision, but Microsoft always has a grand vision and it only gets realized some of the time.  (Need I give countless examples?)  Additionally, there are often times when Microsoft's grand vision doesn't mesh with what the last 20 years of OOP has taught us!  Why do you think the nHibernate people (that includes me if you haven't guessed) scream so loud about POCOs (among other things)?  Because they know that the rest of the programming world has already learned this lesson and they are terrified that Microsoft is going to make a series of critical mistakes that lead the platform and its developers down a wretched path.  Sometimes Microsoft reminds me of people I knew in high school and college.  They are really smart, but when given complex assignments they wouldn't bother to read the project guidelines or pay attention to the teacher's instructions.  Thus, they failed, in spite of their grand ideas and brilliance.



Comments

Steve Gentile said:

ok, can you provide some basis for these ideas you have? I'm curious where these comments are coming from? By the way, I am actively using NHibernate - I will use what is best to solve the customers problems. I haven't used the EF yet, but I also want to stay clear of any 'contempt prior to investigation' Are there certain elements of EF that you think have failed us? Again, just curious
# May 18, 2008 3:36 PM

Joe said:

Doesn't EF support plain old classes?  

# May 18, 2008 3:50 PM

Microsoft » Blog Archive » Why EF? said:

Pingback from  Microsoft  » Blog Archive   » Why EF?

# May 18, 2008 4:56 PM

Peter Ritchie said:

Data-centric design pushed down our throats.  It's implementation first, user's second.

It's going to be a long and bumpy road, but people are coming around...

# May 18, 2008 6:22 PM

DotNetKicks.com said:

You've been kicked (a good thing) - Trackback from DotNetKicks.com

# May 18, 2008 6:23 PM

Rob Eisenberg said:

@Joe

EF doesn't yet truly support POCOs.  (They say it will one day...but who knows when.) The funny thing is that LINQ to SQL does.  The only problem is that LINQ to SQL is missing many of the advanced features that I am happy to take advantage of in NHibernate.  Thus, neither EF or LINQ to SQL has what I need to get the job done.

@Steve

I'm not writing EF off completely.  I agree with you that one should use the best tool for the job.  I guess I didn't portray my frustration clearly.  Essentially, it disturbs me when Microsoft markets a developer technology in terms of what they might be able to do with it in the next couple years rather than what it is right now.  Saying that EF is more than an O/RM is not true right now; it might be some day, but that still remains to be seen.  When it enables my job better than NHibernate, I'll switch to EF right away.  But that's not the case yet.  It just bothers me when Microsoft pretends like their future vision for a product is here now when it isn't and then tries to make devs buy in now.

# May 18, 2008 6:54 PM

Casey Charlton said:

"The future is yet to be written ..." Unless you work in marketing ... :)
# May 19, 2008 2:26 AM

The Inquisitive Coder » Blog Archive » Entity Framework stuff said:

Pingback from  The Inquisitive Coder  » Blog Archive   » Entity Framework stuff

# May 19, 2008 7:48 PM

Scott Bellware said:

"Why do you think the nHibernate people (that includes me if you haven't guessed) scream so loud about POCOs (among other things)?" Because we're cuckoo for poco puffs? :)
# May 20, 2008 1:31 AM

Hot Topics said:

Danny Simmons discusses the benefits of Entity Framework . Comments and analysis by In favor: Roger Jennings

# May 20, 2008 9:23 AM

About Rob Eisenberg

Rob Eisenberg is a .NET architect and developer working out of Tallahassee, FL. He publishes technical articles regularly at devlicio.us and has spoken at regional events and to companies concerning .NET technologies and Agile software practices. He is a partner with Christopher Bennage at Blue Spire Consulting, Inc., a software development firm specializing in .NET Development, Rich Internet Applications and Domain-Driven Design. Rob is coauthor of Sam's Teach Yourself WPF in 24 Hours and is the architect/developer of the Caliburn Application Framework for WPF and Silverlight. He is happily married to Anna Eisenberg and in his spare time enjoys swing dancing, making artisan cheese and playing/teaching drum set. Check out Devlicio.us!

Our Sponsors

Red-Gate!

Proudly Partnered With