You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
For owned entities that are inlined into their owner entity's table, the semantics of a struct make a lot of sense and are much more in line with how the entity ends up being stored. These entities do not have an identity. Their properties are inlined into their owners just like struct's fields are inlined into their containing type. Just like structs, they cannot be null because a collection of columns cannot be null independent of the columns themselves being null. They are value objects.
In addition to this, having a property whose type is a custom struct could automatically make it an owned entity without needing any configuration.
The text was updated successfully, but these errors were encountered:
That's not a duplicate 😕 I don't want to implement a conversion for every owned entity type. I simply want my owned entity types to be structs. I don't see why that's disallowed.
For owned entities that are inlined into their owner entity's table, the semantics of a struct make a lot of sense and are much more in line with how the entity ends up being stored. These entities do not have an identity. Their properties are inlined into their owners just like struct's fields are inlined into their containing type. Just like structs, they cannot be null because a collection of columns cannot be null independent of the columns themselves being null. They are value objects.
In addition to this, having a property whose type is a custom struct could automatically make it an owned entity without needing any configuration.
The text was updated successfully, but these errors were encountered: