OData.Client returns null

痞子三分冷 提交于 2019-12-23 05:08:09

问题


I am trying to fetch all the data for Customer. However, await mODataClient.For ("Customers").Skip (0).FindEntriesAsync() returns null. I could not able to figure out what I am doing wrong. I am trying to get Northwind Customer data

  using Simple.OData.Client;
  private IEnumerable <IDictionary<string,object>> myCustomers;

  mODataClient = new ODataClient ("http://services.odata.org/Northwind/Northwind.svc/");

  try 
    {
        myCustomers =await mODataClient.For ("Customers").Skip (0).FindEntriesAsync();
    }
 catch 
    {
        await DisplayAlert("Error", "Connection Error", "OK", "Cancel");

    }

来源:https://stackoverflow.com/questions/26392033/odata-client-returns-null

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!