OData / lab

This repository is for exploring new ideas and developing early prototypes of various OData stacks.
Other
48 stars 59 forks source link

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

Open stephdep opened 6 years ago

stephdep commented 6 years ago

VS2017 CE

RonniePitts commented 6 years ago

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 commented 6 years ago

Same Error Here! Why no answer to this question?

binek86 commented 6 years ago

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 commented 6 years ago

thanks binek86 your solution work very well for me

indyjason79 commented 5 years ago

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.