How should rules for Aggregate Roots be enforced?

前端 未结 5 2120
一向
一向 2021-02-06 02:21

While searching the web, I came across a list of rules from Eric Evans\' book that should be enforced for aggregates:

  1. The root Entity has global identity and is
5条回答
  •  孤街浪徒
    2021-02-06 02:55

    Technically I don't think there is a way to prevent an external object from holding on to the reference beyond a single method or block. I guess you just have to force this rule in your design.

提交回复
热议问题