实际上我有一个用于 OData (Simple.OData.Client) 的可移植类库,但还没有为它制作 NuGet 包。它是 Simple.Data OData 适配器的一部分。
I am using Simple.OData.Client PCL in the app that I plan to port to various platform including iOS and Android (using Xamarin). If you are interested to give it a try I propose one of two alternatives:
a) Clone the Simple.Data.OData repo (https://github.com/simplefx/Simple.OData), switch to "winrt" branch, build it, there you have Simple.OData.Client that is a PCL supporting most of the platforms. Wiki currently describes Simple.Data adapter syntax, so you need to check Simple.OData.Client tests (https://github.com/simplefx/Simple.OData/tree/master/Simple.OData.Client.Tests) to understand the syntax. It has supports two syntax flavors: when you format filter string yourself and when you use its fluent API. Both of them are very straightforward to use.
b) 我可以加快处理 PCL 的 NuGet 包的工作(当前上传的 NuGet 包只支持 NET4),但需要更长的时间。
如果您有兴趣,请告诉我。