Click here to Skip to main content
15,887,135 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
What are the advantages and disadvantages of Entity Framework 4.0. What are best scenarios and cases where we should use EF 4.0. Many Experts including Martin Fowler hates ORM , what's your say on this ?

Do you prefer using Microsoft Enterprise Data Block over EF 4.0 ? There is lot of ambiguity while design your application and decide what to use while writing your DAL (data Access layer).
Posted
Comments
Richard Deeming 26-Jan-15 15:57pm    
You've been a member for over 9 years. That should be long enough to realise that we don't like reposts[^]!

1 solution

Entity framework is evolving. So, I really don't prefere Entity Framework 4... when there is Entitty Framework 6. If one hates ORM, than he/she has a subjective attitude, which is out of any objective question. There are better and less good ORM implementations, but hating them... why?

Still, if you are assessing the design considerations of your project, you need to consider objective aspects. One major difference between DAAB and EF is the approach to the data. EF (and ORMs in general) makes model strongly typed thus makes it part of your OO code - and you have Linq! DAAB is using a legacy approach. So if you want to have a neat code less work during the whole lifecycle, choose EF. If you need performance, and you want a low level control over the executed SQL code, choose lagacy tools and DAAB. Still the difference in performance is not that much...

Consider reading this performance comparison: http://serena-yeoh.blogspot.hu/2014/02/entity-framework-vs-el-daab-performance.html[^] but this too: http://serena-yeoh.blogspot.hu/2014/02/entity-framework-6-vs-el6-daab.html[^]
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900