Basic Aggregate Question

后端 未结 4 1733
孤独总比滥情好
孤独总比滥情好 2021-01-06 17:57

Is client code allowed to reference entities within an aggregate that is not the root? I have a Story (Root), Team (Entity) and TeamMember

4条回答
  •  悲&欢浪女
    2021-01-06 18:46

    Without knowing how your architecture is supposed to work, it sounds like it should go on Team instead of Story. That's assuming you have a 1 to many from Team to Team Member, and that Team Member is a child of the Team object, not Story.

提交回复
热议问题