Skip to content

fix: correctly find the target of a containment navigation property - #817

Merged
xuzhg merged 1 commit into
OData:mainfrom
mjameson-se:containmentTarget
Mar 20, 2023
Merged

fix: correctly find the target of a containment navigation property#817
xuzhg merged 1 commit into
OData:mainfrom
mjameson-se:containmentTarget

Conversation

@mjameson-se

Copy link
Copy Markdown

This fixes an issue where the NavigationPropertySegment would have the wrong NavigationSource, resulting in an arcane error in certain scenarios because the associated entity type was wrong. The modified method is effectively a copy from odata.net EdmExtensionMethods, and it isn't clear why this line deviated.

@gathogojr

Copy link
Copy Markdown
Contributor

@mjameson-se To make it easier to understand the issue we're fixing here, would you mind creating an issue with repro steps demonstrating the scenario(s) which the existing code wasn't working as expected? Would you also mind adding a test to this PR covering the change that you made?

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants