NHibernate的,实体框架,活动记录或LINQ2SQL [英] NHibernate, Entity Framework, active records or linq2sql
问题描述
我的团队开始在ASP.NET MVC中一个新的项目,我们想知道用什么技术进行数据访问。你如何决定哪一个是最好的?它具有最佳的性能?
哪一个更容易使用和维护?
My team is starting a new project in ASP.NET MVC, and we are wondering what technology to use for data access. How do you decide which one is the best? Which has the best performance? Which one is easier to use and to maintain?
推荐答案
如果.NET 4.0,NHibernate的或实体框架之间进行选择。 NHibernate的是更多的可扩展性和一般功能更丰富。实体框架适用于企业的宁可微软提供什么更好的。他们都是有效的选项,也没有人尚未公布通过的打击比较客观显著的打击。这是更好的非客观比较之一:
If .NET 4.0, choose between NHibernate or Entity Framework. NHibernate is more extensible and generally more feature rich. Entity Framework works better for firms that would rather have what Microsoft provides. They are both valid options and no one has yet published an objective significant blow by blow comparison. This is one of the better non-objective comparisons:
<一个href=\"http://ayende.com/blog/archive/2010/01/05/nhibernate-vs.-entity-framework-4.0.aspx\">http://ayende.com/blog/archive/2010/01/05/nhibernate-vs.-entity-framework-4.0.aspx
如果.NET 3.5或更早版本,选择NHibernate的。
If .NET 3.5 or earlier, choose NHibernate.
<一个href=\"http://stackoverflow.com/questions/1238972/choosing-database-and-orm-for-a-net-project\">http://stackoverflow.com/questions/1238972/choosing-database-and-orm-for-a-net-project
<一个href=\"http://stackoverflow.com/questions/567304/which-orm-tool-should-i-use-for-net-development\">http://stackoverflow.com/questions/567304/which-orm-tool-should-i-use-for-net-development
<一个href=\"http://stackoverflow.com/questions/557948/easiest-to-learn-and-use-net-orm-framework\">http://stackoverflow.com/questions/557948/easiest-to-learn-and-use-net-orm-framework
<一个href=\"http://stackoverflow.com/questions/550929/some-suggestions-on-which-net-orm-to-look-at-learning\">http://stackoverflow.com/questions/550929/some-suggestions-on-which-net-orm-to-look-at-learning
<一个href=\"http://stackoverflow.com/questions/474973/best-orm-tool\">http://stackoverflow.com/questions/474973/best-orm-tool
<一个href=\"http://stackoverflow.com/questions/380620/what-object-mapper-solution-would-you-recommend-for-net\">http://stackoverflow.com/questions/380620/what-object-mapper-solution-would-you-recommend-for-net
<一个href=\"http://stackoverflow.com/questions/249550/what-orm-frameworks-for-net-do-you-like-best\">http://stackoverflow.com/questions/249550/what-orm-frameworks-for-net-do-you-like-best
<一个href=\"http://stackoverflow.com/questions/206197/best-free-orm-tools-to-use-with-net-2-0-3-5\">http://stackoverflow.com/questions/206197/best-free-orm-tools-to-use-with-net-2-0-3-5
<一个href=\"http://stackoverflow.com/questions/132676/which-orm-for-net-would-you-recommend\">http://stackoverflow.com/questions/132676/which-orm-for-net-would-you-recommend
2009年9月04日之后:
After September 04, 2009:
<一个href=\"http://stackoverflow.com/questions/1381916/or-mapping-tool\">http://stackoverflow.com/questions/1381916/or-mapping-tool
<一个href=\"http://stackoverflow.com/questions/1443846/o-rm-choice-not-reliant-on-linq\">http://stackoverflow.com/questions/1443846/o-rm-choice-not-reliant-on-linq
<一个href=\"http://stackoverflow.com/questions/1469761/nhibernate-vs-entity-framework-vs-something-better\">http://stackoverflow.com/questions/1469761/nhibernate-vs-entity-framework-vs-something-better
<一个href=\"http://stackoverflow.com/questions/1470787/how-to-choose-an-object-relational-mapping-for-net\">http://stackoverflow.com/questions/1470787/how-to-choose-an-object-relational-mapping-for-net
这是说,事情的变化。现在,NHibernate的支持LINQ的,我认为NHibernate的是在大多数情况下的明智选择。对于较长的和公平的最新分析,随意阅读:
That said, things change. Now that NHibernate supports Linq, I think NHibernate is the clear choice in the large majority of situations. For a longer and fairly up to date analysis, feel free to read this:
<一个href=\"http://www.capprime.com/software_development_weblog/PermaLink,guid,a986b220-4052-430a-ab77-fab73a45a015.aspx\">.NET和ORM - 决定,决定
这篇关于NHibernate的,实体框架,活动记录或LINQ2SQL的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!