Domain Objects and Services

前端 未结 4 1210
鱼传尺愫
鱼传尺愫 2020-12-12 14:20

In this question someone replies \"You never let the domain object implementations call services by themselves!\". Is this statement a hard fast rule of DDD or does it depen

4条回答
  •  爱一瞬间的悲伤
    2020-12-12 14:39

    One disadvantage I see is that allowing your domain object to call services may make it harder to serialize, or at least cause some issues after serializing it when someone on the other side calls its service method(s).

提交回复
热议问题