我正在使用Windows Phone 8的Azure示例,但我的列表返回空:
var items = App.MobileService.GetTable<MyItem>().ToCollectionView();
但我完全可以通过
插入一行await App.MobileService.GetTable<MyItem>().InsertAsync(newMyItem);
在Web管理器中查看表我发现我正在填充列表。
有人知道吗?
答案 0 :(得分:0)
我的猜测是调用“ToCollectionView”是异步的,当你检查时它还没有收到。尝试使用“ReadAsync”方法:
var items = await App.MobileService.GetTable<MyItem>().ReadAsync();