OData.Client返回null

时间:2014-10-15 21:01:05

标签: web-services odata

我正在尝试获取Customer的所有数据。但是,await mODataClient.For ("Customers").Skip (0).FindEntriesAsync()返回null。我无法弄清楚我做错了什么。我正在尝试获取 Northwind客户数据

  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");

    }

0 个答案:

没有答案