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
There seems to be a convention that a property matching the type of the Owner entity on the Owned entity will be automatically used as a navigation back to the owner.
This isn't documented, and presents challenges when trying to work around this.
Example:
Note: This is a crappy example that doesn't really convey a real-life use case, but does highlight the confusion from the conventions being unknown...
publicclassPerson{publicintId{get;set;}publicstringName{get;set;}publicRelatedPersonRelated{get;set;}}[Owned]publicclassRelatedPerson{// Is this now a navigation property back to the owner, or is this a distinct Person separate from the owner?// What if this is supposed to not be a navigation property? How is that configured?publicPersonPerson{get;set;}// If Person is a navigational property to the owner, is this Id set appropriately? If not?publicintPersonId{get;set;}}
Document Details
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.
ID: d02e6748-42e0-000a-4945-42cd05a0b875
Version Independent ID: e3effbd0-07f2-423d-4032-1722e75adb37
There seems to be a convention that a property matching the type of the Owner entity on the Owned entity will be automatically used as a navigation back to the owner.
This isn't documented, and presents challenges when trying to work around this.
Example:
Note: This is a crappy example that doesn't really convey a real-life use case, but does highlight the confusion from the conventions being unknown...
Document Details
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.
The text was updated successfully, but these errors were encountered: