亚音速VS NHibernate的 [英] Subsonic Vs NHibernate

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

问题描述

什么是何时使用这些工具adversed到另一个的concensus?我觉得亚音速把事情迅速完成方面是非常有用的,但对大型项目它往往不按比例,和其联系您的域模型,您的数据库模型。这就是NHibernate的进来,因为它为您提供了轻量级波苏斯是无关的数据库模型,但建立时间要长得多。

What is the concensus on when to use one of these tools adversed to the other? I find Subsonic very useful in terms of getting things done quickly, but on large projects it tends not to scale, and its ties your domain model to your database model. That is where Nhibernate comes in as it gives you lightweight POCOs that are unrelated to your database model, but the setup time is much longer.

推荐答案

有人问我这个问题了很多,实际上它归结为多少你想拨弄。我不能告诉你,克里斯Cyvas的意见如何破坏RE亚音速比例已经 - 我一直在响应这些自从:(

I get asked this question a lot and really it comes down to how much you want to fiddle. I can't tell you how damaging Chris Cyvas's comments RE SubSonic scaling have been - and I've been responding to these ever since :(.

该协议是 - 穿孔 - 明智的,亚音速尺度非常漂亮。在项目增长方面 - 使用任何工具,需要你的关注。即使NHibernate的。

The deal is - perf-wise, SubSonic scales very nicely. In terms of project growth - ANY tool you use will require your attention. Even NHibernate.

我写了关于如何使用Repository模式与DI后(就像使用NHIb或与此有关的任何工具)亚音速2.1:

I wrote a post on how to use the Repository pattern with DI (as you would with NHIb or any tool for that matter) with SubSonic 2.1:

<一个href="http://blog.wekeroad.com/blog/subsonic-writing-decoupled-testable-$c$c-with-subsonic-2-1/">http://blog.wekeroad.com/blog/subsonic-writing-decoupled-testable-$c$c-with-subsonic-2-1/

我也写了亚音速性能后:

I also wrote a post on the performance of SubSOnic:

<一个href="http://blog.wekeroad.com/blog/subsonic-scaling/">http://blog.wekeroad.com/blog/subsonic-scaling/

希望这有助于。

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

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