SubSonic 与 Castle ActiveRecord

发布于 2024-08-05 12:48:16 字数 419 浏览 3 评论 0原文

对于即将到来的项目,需要围绕旧的 Oracle 数据库编写 C# 代码。它将非常以数据为中心,因为大多数代码将处理数据操作——几乎没有业务规则。因此,我决定不使用成熟的 ORM,而是选择 Active Record 方法。

我遇到两个选项: SubSonicCastle ActiveRecord

谁有这两种实现的经验?当我在它们之间进行选择时,我应该考虑哪些因素?哪一个更稳定/更快/更容易合作/拥有良好的支持社区?

我很高兴得到一些决策指导。

For an upcoming project C# code needs to be written around a legacy Oracle database. It will be very data centric, because most of the code will deal with data manipulation -- there are almost no business rules. So I decided against a full blown ORM and opted for an Active Record approach.

I come across two options: SubSonic and Castle ActiveRecord

Who has experience with both implementations? What factors should I consider, when I choose between them? Which one is more stabler/faster/easier to work with/has a good supportive community?

I would be very glad to get some decision guidance.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

姜生凉生 2024-08-12 12:48:16

SubSonic 和 NHibernate(Castle ActiveRecord 是在其上构建的)都是成熟的 ORM。

NHibernate 通常比 SubSonic 更成熟、功能更丰富。它拥有更大的用户和贡献者社区。

亚音速的加速时间更快。

另请参阅(请注意,阅读更多内容并不一定会让您的决定更容易,实际上可能会起到相反的作用):

在 NHibernate 之前学习 SubSonic 还是反之亦然?

Subsonic 与 NHibernate >

http://ayende.com/Blog /archive/2007/06/03/On-SubSonic-amp-NHibernate.aspx

http:// subsonicproject.com/docs/Comparisons

请注意,关于您将看到的一些名称:Ayende Rahien 是 NHibernate 的贡献者,Rob Conery 是 SubSonic 的贡献者。

NHibernate 是“安全”的选择,因为它很可能能够处理您发送给它的任何奇怪情况。只要你的设计正确,你可以从 SubSonic 开始,然后在必要时用 NHibernate 替换它(这会涉及一些重新编码成本)。

该决定最终取决于具体情况并取决于您。

Both SubSonic and NHibernate (upon which Castle ActiveRecord is built) are full blown ORMs.

NHibernate is generally more mature and more feature rich than SubSonic. It has a larger user and contributor community.

Subsonic has a quicker ramp up time.

See also (please note that reading more won't necessarily make your decision easier, it may in fact do the opposite):

Learn SubSonic before NHibernate or Vice Versa?

Subsonic Vs NHibernate

http://ayende.com/Blog/archive/2007/06/03/On-SubSonic-amp-NHibernate.aspx

http://subsonicproject.com/docs/Comparisons

Note, in regard to some of the names you will see: Ayende Rahien is a contributor to NHibernate and Rob Conery is a contributor to SubSonic.

NHibernate is the "safe" bet since it's likely to be able to handle whatever weirdness you send its way. As long as you do your design right, you can start with SubSonic and then replace it with NHibernate later if necessary (there will be some recoding cost involved).

The decision is ultimately situational and up to you.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文