I am trying to work with data from an existing ODATA endpoint in code for another ODATA API.
I have no desire to recreate all the models manually and so I was hoping to use the existing edmx models to create the classes in C# that I need.
I looked into the "odata client code generator" offered by Microsoft and this seems like the perfect solution, but I can only get it to work if I connect directly to a service endpoint... it doesn't work if I download the edmx file and try to use that (even though the tutorial says you can use a URL OR a file).
Has anyone actually been able to successfully connect this odata client code generator to an edmx file?
If I can't get this working, does anyone have other suggestions for how to generate the classes I need from these edmx models?
I am specifically trying to work with the metadata from Microsoft Project Online. It gives an endpoint like this: https://[domain]/sites/pwa/_api/ProjectData/$metadata
I can't connect directly to this unfortunately because it requires authentication and the odata client code generator doesn't support authentication...