NHibernate或流利的NHibernate? [英] NHibernate or Fluent NHibernate?

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

问题描述

我有兴趣听取别人的意见,不管他们会选择哪一个(请不要吝啬鬼),以及为什么。使用流利? (版本依赖可能?)
优点,缺点,经验等

解决方案

流利的NHIbernate位于NHibernate之上,所以它不是两个之间的选择。如果你打算使用NHibernate,CHOOSE在它上面使用Fluent NH来节省你大量的工作。

流利的NHibernate很棒,我不会使用NHibernate没有它。您可以流利地映射所有实体(给您编译时间检查和自动化测试支持),而不必维护繁琐的xml文件并记住它们的语法/ DTD。



它也可以自动映射您的实体基于默认和/或您自己的习惯。



只要使用它!


I would be interested in hearing op opinions from others regarding whether which they would choose (no 'neithers' please ;), and why.

What are the downsides to using fluent? (version dependancy maybe?) Pros, Cons, Experiences etc.

解决方案

Fluent NHIbernate sits on top of NHibernate, so its not really a choice between the two. If youre going to use NHibernate, CHOOSE to use Fluent NH on top of it to save yourself vast amounts of effort.

Fluent NHibernate is awesome, I wouldn't use NHibernate without it. You can fluently map all your entities (giving you compile time checking, and automated testing support) instead of having to maintain cumbersome xml files and remember their syntax/DTD.

It can also automatically map your entities based on default and/or your own custom conventions.

Just use it!

这篇关于NHibernate或流利的NHibernate?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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