M
M
mindgrow2019-09-09 14:00:06
Problem-Based Design
mindgrow, 2019-09-09 14:00:06

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

1 answer(s)
I
Ivan Shumov, 2019-09-09
@inoise

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 question

Ask a Question

731 491 924 answers to any question