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

Make ownership handling during model building more consistent #25211

Merged
merged 2 commits into from
Jul 9, 2021

Conversation

AndriySvyryd
Copy link
Member

@AndriySvyryd AndriySvyryd commented Jul 7, 2021

  • Store Owned configuration on EntityType
  • Add methods to IMutableModel and IConventionModel for creating owned entity types
  • Make sure ownerships have an associated principal to dependent navigation at all times
  • Store owned types in a field instead of an annotation

Fixes #25138

Store Owned configuration on EntityType
Add methods to IMutableModel and IConventionModel for creating owned entity types
Mark entity types discovered from DbSet properties on DbContext as configured explicitly
Make sure ownerships have an associated principal to dependent navigation at all times
Store owned types in a field instead of an annotation

Fixes #25138
@AndriySvyryd AndriySvyryd requested review from smitpatel and a team July 7, 2021 04:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

'The object has been removed from the model.' when building model
2 participants