douyuben9434 2011-05-03 13:22
浏览 33
已采纳

域模型或域对象? - 定义

Please correct me if I'm wrong.

We may say Domain Model to represent:

a) The M part of a MVC structure, having on the M part, a Domain Driven Design pattern applied.

b) A scheme of entities, their attributes and relationships in a certain way. Could also represent a M part on a MVC but, on this case, regardless the pattern used.

c) A Domain Model Design Pattern where "a Domain Model creates a web of interconnected objects";

d) As a Domain Object (that could be, for example, an object on our MVC model regargind a certain domain);

Could we say that d) is the same as b) ?

Thanks a lot.

  • 写回答

2条回答 默认 最新

  • douhuo3696 2011-05-03 13:51
    关注

    Shorty answer: no, they are not the same.

    Domain objects actually are (removed) .. look at the comment from @meze .. there is a link.

    This part "scheme of entities, their attributes and relationships" is kinda related to structure of the data. But you Domain objects should not be aware of fact that they are stored or even that there exists a storage. That is responsibility of Data access layer.

    And the Domain model is the overarching structure which manipulates different types and numbers of Domain objects.

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论
查看更多回答(1条)

报告相同问题?

悬赏问题

  • ¥100 set_link_state
  • ¥15 虚幻5 UE美术毛发渲染
  • ¥15 CVRP 图论 物流运输优化
  • ¥15 Tableau online 嵌入ppt失败
  • ¥100 支付宝网页转账系统不识别账号
  • ¥15 基于单片机的靶位控制系统
  • ¥15 真我手机蓝牙传输进度消息被关闭了,怎么打开?(关键词-消息通知)
  • ¥15 装 pytorch 的时候出了好多问题,遇到这种情况怎么处理?
  • ¥20 IOS游览器某宝手机网页版自动立即购买JavaScript脚本
  • ¥15 手机接入宽带网线,如何释放宽带全部速度