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 optional owned types #1646

Closed
spottedmahn opened this issue Aug 17, 2019 — with docs.microsoft.com · 5 comments · Fixed by #1732
Closed

Document optional owned types #1646

spottedmahn opened this issue Aug 17, 2019 — with docs.microsoft.com · 5 comments · Fixed by #1732

Comments

Copy link
Contributor

I opened an issue asking for null owned types support and it was closed as a duplicate. The duplicate issue appears to be closed as implemented in 3.0 preview 4.

I don't see an open issue to update the documentation for 3.0 changes so I'm opening one 😊


Document Details

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

@spottedmahn
Copy link
Contributor Author

looks like this needs to be changed:

Reference navigations to owned entity types cannot be null unless they are explicitly mapped to a separate table from the owner

since it was implemented 😀

@ajcvickers ajcvickers changed the title 3.0 Updates? NULL Owned Types Document optional owned types Sep 2, 2019
@ajcvickers ajcvickers added this to the Backlog milestone Sep 2, 2019
@ajcvickers ajcvickers modified the milestones: Backlog, 3.0.0 Sep 6, 2019
AndriySvyryd added a commit that referenced this issue Sep 13, 2019
AndriySvyryd added a commit that referenced this issue Sep 13, 2019
AndriySvyryd added a commit that referenced this issue Sep 16, 2019
AndriySvyryd added a commit that referenced this issue Sep 18, 2019
@spottedmahn
Copy link
Contributor Author

nice, thanks!!

@matteocontrini
Copy link

looks like this needs to be changed:

Reference navigations to owned entity types cannot be null unless they are explicitly mapped to a separate table from the owner

@spottedmahn I read your comment but it seems that that statement still applies? From what I understand a property that references an owned entity can be null only if table splitting is used. Is that correct?

@spottedmahn
Copy link
Contributor Author

Hi @matteocontrini - owned entities can be null w/o table splitting as of 3.0.

Sample code is here: https://stackoverflow.com/a/57596415/185123

@matteocontrini
Copy link

I then found that I was incurring in issue dotnet/efcore#18066, that's why I thought support wasn't there :)
Thanks!

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

Successfully merging a pull request may close this issue.

4 participants