Ruby on Rails 和领域驱动开发 [英] Ruby on Rails and Domain Driven Development

查看:39
本文介绍了Ruby on Rails 和领域驱动开发的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

据我所知,ruby on rails 正在使用 Active Record 和每类表策略.

As I know ruby on rails are using Active Record with table per class strategy.

我想知道是否可以在领域驱动的设计风格中使用 Rails,这需要 ORM 对数据模型具有更高层次的抽象,例如 NHibernate.

I wonder if it possible to use Rails in domain driven design style, which require ORM which has more level of abstraction of data model, such as NHibernate.

最好的问候,阿列克谢·扎哈罗夫

Best regards, Alexey Zakharov

推荐答案

您可能需要查看 http://datamapper.组织/

它适用于 Ruby 和 Ruby on Rails,并支持在此处替换 Rails 3 中的 ActiveRecord:http://github.com/datamapper/dm-rails

It works with Ruby and Ruby on Rails, and has support for replacing ActiveRecord in Rails 3 here: http://github.com/datamapper/dm-rails

这篇关于Ruby on Rails 和领域驱动开发的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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