Answer the question
In order to leave comments, you need to log in
DDD - what to be guided by when referring a method to an entity?
Good afternoon!
There is an entity Client, there is an entity Account.
To which entity should the GetClientIdByAccountNumber method be attributed?
Answer the question
In order to leave comments, you need to log in
There is no need to have such methods at all. We receive the client, we receive its identifier. At the DDD level, we operate with domain entities, and the method that you want can only apply to an abstract service in a vacuum, which will be built on top of the domain model
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question