What Are Your Thoughts On Entity Framework 4.0? [closed]

点点圈 提交于 2019-12-03 06:53:15

问题


The initial release of the Entity Framework wasn't regarded well in the development community. Developers felt a number of things were left out, and many continued to use other ORM's, such as LINQ To SQL and NHibernate. The good news, however, is that Microsoft has been hard at work on the 4.0 release of Entity Framework, which will bring with it many fixes, including lazy loading and POCO support. Many believed that the initial release of Entity Framework should have included these features; however, it is certainly comforting to see proof that the Entity Framework team has addressed concerns voiced by the developer community.

Now that Visual Studio 2010 beta 2 has been out for a few weeks, I've been wondering how other developers feel about the next release of Entity Framework. What are your thoughts?

I realize that some people still have negative feelings towards Entity Framework. When answering, the assumption should be that the readers know nothing about alternative ORM's. Please compare and contrast differences with other ORM's. Feel free to bring up areas where an alternative does something better. Also, feel free to mention areas that Entity Framework 4.0 excels.


回答1:


Well, at first glance, I didn't even understood the reason for EF's existense. Basically Linq To SQL is doing the same job with much less effort and it supports quite a few things that EF doesn't. Or at least that's the case in .NET 3.5.

In .NET 4, there is a gossip that Linq To SQL, although it remains there, will be sort of discontinued, and only EF will be developed further. (The decision that they chose to develop a flawed system insted of a working one, seems to me a little weird.)

All said, however, EF v4 will be just fine, if it really supports everything it claims to support.

(However, I don't know what advantages does it have over NHibernate, for example.)




回答2:


Julie Lermann is doing a very good series of post on her blog recently that shows a lot of goodness about EF4. The best I think would be that you go through that blog and build yourself an opinion...

http://thedatafarm.com/Blog/




回答3:


EF 4 is the version I was expected.
I wasn't really happy about the first release, LinqToSql felt really ahead in those days. Saying that, intern politic fight gave its verdict: L2S is dead...

Between the first versions of these two microsoft ORM, we saw the community blogging a lot about their poor behavior in n-tiers scenarios. So I am not very surprised that the two greatest new features are oriented in this way.

These two new features are totally complementary:

-POCO: induces low-coupled layers but demands some work to handle synchronization between tiers. -Self-Tracking Entities: induces tied-coupled layers but reduces tremendously the amount of code to provide...

For me, the choice is made. I would never choose productivity over healthy design.
Let's rock for POCO !



来源:https://stackoverflow.com/questions/1766281/what-are-your-thoughts-on-entity-framework-4-0

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!