DDD Entities making use of Services

后端 未结 5 1338
生来不讨喜
生来不讨喜 2021-02-01 08:18

I have an application that I\'m trying to build with at least a nominally DDD-type domain model, and am struggling with a certain piece.

My entity has some business logi

5条回答
  •  面向向阳花
    2021-02-01 09:22

    i would say services use entities, not the other way around.

    another thing, not sure on your domain, but are you certain ticket is an entity and not a value object?

提交回复
热议问题