-
Notifications
You must be signed in to change notification settings - Fork 2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add more conceptual documentation around aggregates #1629
Comments
This is by design. Owned types are part of an aggregate and only the aggregate root can be referenced from outside.
This doesn't say that Route is the principal, it has three references to three entities. |
On closer inspection of my model, I think that table splitting is a better fit for my problem than owned entities. Thanks for the feedback. |
The documentation makes the following claim about references from owned types:
It is not made clear why the owned entity must be on the dependent side of the relationship. Is this limitation by-design or a current shortcoming?
A concrete example of a scenario that would benefit from this capability was outlined in the stackoverflow question:
https://stackoverflow.com/q/54647000/2196664
When talking about DDD, having value objects reference a collection of entities does not seem to be a restriction:
Document Details
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.
The text was updated successfully, but these errors were encountered: