Replies: 2 comments
-
Thanks for the report. The best way for us to help you there is to create a sample app with the Uno template, and make it work for UWP. From that point, we'll look at the working solution and try to apply it to Wasm. |
Beta Was this translation helpful? Give feedback.
-
Hi. The attached sample project uses Simple.OData.Client and Microsoft.OData.Client together. In constructing this application, api metada (https://localhost:44352/odata/$metadata) is saved as an xml file named as "metadata.xml" in Sever application DataSource folder and OData Connected service is added to UWP app, setting address to this file in configuration which should be configured for an updated xml file or new project. Then the generated OData Service reference folder is moved to Shared project and removed form UWP. To make Simple.OData.Client work Simple.OData.Client.V4.Adapter assemly is added to LinkerConfig.xml file and a static method is added in WASM.Program class that calls Simple.OData.Client.V4Adapter.Reference() method, else Simple.OData.Client.V4Adapter is not loaded. simple-odata-client/Simple.OData.Client#53 describes reason. Regards. |
Beta Was this translation helpful? Give feedback.
-
What would you like clarification on:
Hello,
I want to use Microsoft.OData.Client for UWP and WASM platforms to generate models from ODatV4 web Api with INotifyPropertyChanged interface implemented. It works without problem for UWP platfrom but for WASM it is not very clear how to introduce httpclient to the container. Setting
Default.Container HttpRequestTransportMode = HttpRequestTransportMode.HttpClient is not enough;
For LOB applications ODatav4 web Api is more powerful than ordinary web Api, so it will be very helpful if you can add an how-to tutorial for ODatav4 web Api usage.
Concern?
For which Platform:
Beta Was this translation helpful? Give feedback.
All reactions