实体框架4 VS NHibernate的 [英] Entity Framework 4 vs NHibernate

查看:153
本文介绍了实体框架4 VS NHibernate的的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

很多已经讲了在网络上实体框架的第一个版本(也计算器)很显然,这不是一个很好的选择,当我们已经有了像NHibernate的更好的选择。但我无法找到实体框架4和NHibernate的好比较。我们可以说,今天的NHibernate是所有.NET的ORM中的佼佼者,但我们可以期待实体框架4,从这个位置取代NHibernate的。我认为,如果微软真的注入EF4非常好的功能可以提供良好的竞争NHibernate的,因为它有Visual Studio集成,更易于使用和preference总是给微软产品的大多数商店工作。

A lot has been talked about Entity Framework first version on the web (also on stackoverflow) and it is clear that it was not a good choice when we already have better alternative like NHibernate. But I can't find a good comparison of Entity Framework 4 and NHibernate. We can say that today NHibernate is the leader among all .NET ORMs, but can we expect Entity Framework 4 to displace NHibernate from this position. I think if Microsoft has really injected very good features in EF4 it can give good competition to NHibernate as it has Visual Studio integration, easier to work with and preference is always given to MS products in most shops.

推荐答案

EF4有关于n层发展出来的现成答案,在自跟踪实体。没有人发布了媲美$ C $下NHib。

EF4 has an out-the-box answer with regard to n-tier development, in "self-tracking entities". Nobody has released comparable code for NHib.

NHib有没有被提及作为EF4的一部分,很多功能。这些措施包括二级缓存集成。它也有在继承映射更大的灵活性,与存储的特效/数据库功能/自定义SQL /触发器,对配方特性的支持等方面更好地结合。国际海事组织它基本上只是更加成熟的一个ORM。

NHib has many features that have not been mentioned as being part of EF4. These include the second-level cache integration. It also has greater flexibility in inheritance mapping, better integration with stored procs / database functions / custom SQL / triggers, support for formula properties and so on. IMO it's basically just more mature as an ORM.

这篇关于实体框架4 VS NHibernate的的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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