最佳ORM与使用C#4.0 [英] Best ORM to use with C# 4.0

查看:144
本文介绍了最佳ORM与使用C#4.0的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

什么是最好的方法是使用像Nhibertate或实体框架ORM或做客户的ORM。 我会用这个ORM的C#4.0的项目

what is the best way is to use a ORM like Nhibertate or Entity Framework or to do a customer ORM . I will use this ORM for a C# 4.0 project

推荐答案

定义最佳:它是最成熟的,一个与更多的文档,更大的社区,更多的主流

Define "best": Is it the most mature, the one with more documentation, bigger community, more mainstream?

NHibernate的是比较成熟的,功能丰富,拥有更先进的社会,不可能当MS决定再次打破兼容性停止。 实体框架是比较主流,并且支持即开即用即装即用。你会发现更多的入门书籍EF,更先进的书籍NH。

NHibernate is more mature, feature rich, with a more advanced community and not likely to be discontinued when MS decides to break compatibility again. Entity Framework is more mainstream and is supported out-of-the-box. You will find more beginner books for EF, more advanced books for NH.

有一个很好的办法是尝试像亚音速,并转移到更先进的ORM,一旦你了解奥姆斯工作,有什么不同的陷阱,什么 SELECT N + 1 指[:P]

A good option would be to try one of the simpler ORMs like Subsonic and move to more advanced ORMs once you understand how ORMs work, what are the various pitfalls, what SELECT N+1 means [:P]

只是不尝试创建自己的ORM,也有几十个在那里了!亚音速,城堡的ActiveRecord ,NH,EF(当然),的 LLBLGenPro ...

Just don't try to create your own ORM, there are several dozens out there already! Subsonic, Castle ActiveRecord, NH, EF (of course), LLBLGenPro...

这篇关于最佳ORM与使用C#4.0的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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