Entity Framework vs alternatives

核能气质少年 提交于 2019-12-23 04:36:13

问题


Duplicate:

  • What ORM frameworks for .NET Do You Like Best?
  • What are you currently using for data access?
  • When choosing an ORM, is LINQ to SQL or LINQ to Entities better than NHibernate?
  • Database (and ORM) choice for an small-medium size .NET Application
  • Etc.

What OR\M would you recommend for a large ASP.NET application, Entity Framework or NHibernate. What do you consider to be the advantages and disadvantages specific to both technologies?


回答1:


I put together a fairly lengthy answer to a similar question: ADO.NET Entity Framework: Decision Making between ORM solutions.

However, since you asked :) I agree, I'd pick NHibernate for an "Enterprise" web solution today, however..

The next version of the Entity Framework should be worth taking a long hard look at. The first version wasn't ready for large scale deployment and the generated T-SQL leaves a lot to be desired, but I see a big future if the ADOEF team can put it together correctly. It could be really something, especially if it's able to consume the revamped SQL Data Services!

If anything, I'd brush up on eSql (Entity SQL) and get used to the syntax for using LINQ to write data queries. Something tells me this will be excellent experience to have handy for the next few years.




回答2:


NHibernate is much more mature, has a large userbase, and supports 'real lazy loading', is persistence ignorant...

I would go for NHibernate.



来源:https://stackoverflow.com/questions/662231/entity-framework-vs-alternatives

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