Skip to content
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

An Owned Entity is NOT similar to an Aggregate. It is similar to the Value-Object pattern #2109

Closed
CESARDELATORRE opened this issue Feb 13, 2020 — with docs.microsoft.com · 1 comment

Comments

Copy link

It is wrong to say that Owned "they are conceptually similar to aggregates." as the article states at the begining.
An "Owned Entity" is NOT similar to an Aggregate. It is similar to the "Value-Object" pattern (although not exactly the same).
An Aggregate can contain multiple Value-Objects along with multiple fields.

Then, a link pointing to the Value-Object pattern should be added at the begining of the article, like this:
https://www.martinfowler.com/bliki/ValueObject.html


Document Details

Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

@AndriySvyryd
Copy link
Member

@CESARDELATORRE Entities that own other entities are conceptually similar to aggregates. Value objects don't have an explicit identity and are usually compared using value equality, however owned entities have a primary key, that like in other entities can't be changed while it is being tracked.

Proper value object support is planned: dotnet/efcore#9906
We also plan to make improvements to entities that own other entities to make them behave more like aggregates: dotnet/efcore#1985

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants