RE: Returning newly created entities from the aggregate

<[email protected]>
Newsgroups gmane.comp.programming.domain-driven-design
Message-ID <[email protected]>
Hi Ramin,
 

 The ID for the sub organisation isn't created until it is persisted to the database unfortunately. And in writing this I've just realised I can't just return the ID from the method for that same reason.
 

 I'm not sure I understand what you mean with regards to the polling technique. Are you suggesting that I could poll to retrieve the result of the command and retrieve the ID that way? Would that not be similar to just returning a value from the command in the first place?
 

 

 Regards,
 Matt
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.