RE: Returning newly created entities from the aggregate
| 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