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

Shouldn't be "v4navProperty"? #58

Open
bsmykowskiinf opened this issue Aug 9, 2022 · 1 comment
Open

Shouldn't be "v4navProperty"? #58

bsmykowskiinf opened this issue Aug 9, 2022 · 1 comment

Comments

@bsmykowskiinf
Copy link

ExceptionUtil.IfNullThrowException(v4Type, "Unable to locate v4 navigation property " + nodeIn.NavigationProperty.Name);

@sigseg1v
Copy link

sigseg1v commented Oct 9, 2024

While I haven't tested this thoroughly, I think there might be an additional issue in this function for processing SingleNavigationNode.

IEdmStructuredType v4Type = v4model.GetV4Definition(nodeIn.TypeReference.Definition) as IEdmStructuredType;
should likely be v4model.GetV4Definition(nodeIn.NavigationProperty.DeclaringType).

I was getting an issue at the same spot as you, which appeared at first that it was failing to catch the null navigation property, but the root issue is actually that it tries to read the navigation property from the navigation property type itself instead of from the type that declares it.

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

No branches or pull requests

2 participants