NHibernate,Entity Framework,活动记录或linq2sql [英] NHibernate, Entity Framework, active records or linq2sql

查看:146
本文介绍了NHibernate,Entity Framework,活动记录或linq2sql的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的团队正在ASP.NET MVC中开始一个新项目,我们想知道什么技术用于数据访问。你如何决定哪一个是最好的?哪个具有最好的性能?
哪一个更容易使用和维护?

解决方案

如果是.NET 4.0,请选择NHibernate或Entity Framework 。 NHibernate是更可扩展和一般更多的功能丰富。实体框架更适合那些宁愿拥有微软提供的公司。他们都是有效的选择,没有人发表了一个客观的重大打击的打击比较。这是更好的非客观比较之一:



http://ayende.com/blog/archive/2010/01/05/nhibernate-vs.-entity-framework-4.0.aspx < a>



如果是.NET 3.5或更早版本,请选择NHibernate。



为.NET项目选择数据库和ORM



我应该使用哪个ORM工具进行.Net开发



最简单的学习和使用.NET ORM框架?



一些关于.NET ORM学习的建议



最佳ORM工具



http://stackoverflow.com/questions/380620/what-object-mapper-



http://stackoverflow.com/questions/249550/what-orm-frameworks-for-net-do-you-like-best



使用.NET 2.0 / 3.5的最佳免费ORM工具



http://stackoverflow.com/questions/132676/which-orm-for-net-would-you-建议

2009年9月4日之后:



OR映射工具





http://stackoverflow.com/questions/1469761/nhibernate-vs-entity-framework-vs-something-better



如何为.net选择对象关系映射



这就是说,事情改变了。现在NHibernate支持Linq,我认为NHibernate是在大多数情况下的明确选择。对于较长且相当及时的分析,请随时阅读:



。NET和ORM - 决定,决定


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?

解决方案

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:

http://ayende.com/blog/archive/2010/01/05/nhibernate-vs.-entity-framework-4.0.aspx

If .NET 3.5 or earlier, choose NHibernate.

Choosing Database and ORM for a .NET project

Which ORM tool should I use for .Net development

Easiest to learn and use .NET ORM framework?

Some suggestions on which .NET ORM to look at learning

Best ORM Tool

http://stackoverflow.com/questions/380620/what-object-mapper-solution-would-you-recommend-for-net

http://stackoverflow.com/questions/249550/what-orm-frameworks-for-net-do-you-like-best

Best free ORM tools to use with .NET 2.0/3.5

http://stackoverflow.com/questions/132676/which-orm-for-net-would-you-recommend

After September 04, 2009:

OR Mapping tool

O/RM Choice (not reliant on linq)

http://stackoverflow.com/questions/1469761/nhibernate-vs-entity-framework-vs-something-better

How to choose an object relational mapping for .net

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:

.NET and ORM - Decisions, decisions

这篇关于NHibernate,Entity Framework,活动记录或linq2sql的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆