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

Adding OData Connected Service to the project failed: The schema element 'NavigationProperty' was not expected in the given context. #76

Open
stephdep opened this issue Nov 23, 2017 · 5 comments

Comments

@stephdep
Copy link

VS2017 CE

@RonniePitts
Copy link

same problem on VS2017 Enterprise.
Adding new OData service returns this error:

Adding Nuget Packages
Generating Client Proxy ...
Error:Adding OData Connected Service to the project failed: The schema element 'NavigationProperty' was not expected in the given context.

@noufionline
Copy link

Same Error Here! Why no answer to this question?

@binek86
Copy link

binek86 commented Feb 27, 2018

This error happens when you use a property with a name "Id" in your model. I had to change my property to MyId so the generation works. Any ideas as to why is this happening?

@fredyadriano90
Copy link

thanks binek86 your solution work very well for me

@indyjason79
Copy link

indyjason79 commented May 10, 2019

This is still an issue nearly 2 years after being reported :( I want to use 'Id' as my property name so the work-around is not a viable solution for me.

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

6 participants