Skip to content

Document complex types #4413

@AndriySvyryd

Description

@AndriySvyryd

See

Compare with owned types (#4265):

Owned types:

  • Have identity
  • Can only be mapped to a refence type
  • Are mutable, can have navigations
  • Can be mapped to different tables
  • Can be mapped as optional with table sharing

Complex types:

  • No identity, single instance can be referenced from different entities
  • 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). Collections need to be mapped to JSON in relational databases
  • Can be mapped as optional with table sharing, but only if it has at least one required property

Metadata

Metadata

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions