Where are the order identifiers?

Sorry for the naive question; I am still working on understanding DDD. Say I have one IOrderService. This is where I will have the method GetNewOrderID? Or, I think, more generally, what is the right way to place new orders in a DDD script?

+3
source share
2 answers

If I misunderstood DDD, then this is not a naive question - instead, when it is not clear where responsibility has been studied / understood, which is not enough, is not enough. Such things as:

  • What is the format of the order identifier, what information falls into one order number.
  • Is there a requirement to save something at the time of receipt of a new OrderID - for example, who requested it, etc.
  • , ?

.

0

, . , , , , OrderSource IOrderSource OrderService - - -. , , " ", , .

, , . , OrderSource, OrderForm ReferenceNumber. ReferenceNumber , , , Id.

, , , . , , , - , . - , ; , . DDD Ubiquitous Language !

0

Source: https://habr.com/ru/post/1757852/


All Articles