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

Document complex types #4413

Open
AndriySvyryd opened this issue Jul 12, 2023 · 0 comments
Open

Document complex types #4413

AndriySvyryd opened this issue Jul 12, 2023 · 0 comments
Assignees
Milestone

Comments

@AndriySvyryd
Copy link
Member

AndriySvyryd commented Jul 12, 2023

See dotnet/efcore#13947

Compare with owned types

Owned types:

  • Have identity
  • Can only be mapped to a refence type,
  • Are mutable, can have navigations
  • Can be mapped to different tables

Complex types:

  • No identity
  • Can be mapped to a reference or value type
  • Recommended to be immutable (especially for value types)
  • Need to be mapped to the same table (with the exception of entity splitting)
@AndriySvyryd AndriySvyryd self-assigned this Jul 12, 2023
@AndriySvyryd AndriySvyryd added this to the 8.0.0 milestone Jul 19, 2023
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

1 participant