Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/csharp/304.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/android/228.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
C# Azure移动服务pullasync未检索数据_C#_Android_Azure_Xamarin - Fatal编程技术网

C# Azure移动服务pullasync未检索数据

C# Azure移动服务pullasync未检索数据,c#,android,azure,xamarin,C#,Android,Azure,Xamarin,我已经遵循了教程(针对XamarinAndroid)中描述的所有步骤,但在我像这样查询ToToTable之后 var items = await toDoTable.Where(x => x.Complete == false).ToListAsync(); 在OnCreate()的末尾,我无法访问存储到云中的数据,只能访问我之前在本地数据库中添加的数据。 await client.SyncContext.PushAsync(); 效果很好,因为我可以在云中看到我通过应用程序添加的数

我已经遵循了教程(针对XamarinAndroid)中描述的所有步骤,但在我像这样查询ToToTable之后

var items = await toDoTable.Where(x => x.Complete == false).ToListAsync();
在OnCreate()的末尾,我无法访问存储到云中的数据,只能访问我之前在本地数据库中添加的数据。

await client.SyncContext.PushAsync(); 
效果很好,因为我可以在云中看到我通过应用程序添加的数据,但是

await toDoTable.PullAsync("allTodoItems", toDoTable.CreateQuery());
似乎不起作用


有什么想法吗?

问题不在于toDoTable.PullAsync命令,而是我在表中插入数据并希望检索数据的方式。我使用的是移动服务网站,没有让表自动为自动生成的列生成数据

{
 "id_user": 1,
 "username": "sample string 2",
 "password": "sample string 3",
 "is_doctor": 4,
 "id": "sample string 5",
 "__version": "QEBA",
 "__createdAt": "2015-06-06T08:21:37.329Z",
 "__updatedAt": "2015-06-06T08:21:37.329Z",
 "__deleted": true
}
并且正在插入上面的数据。一旦我进行了另一次插入(下面的插入)并让这些列自动生成,我就能够从表中检索数据

{
 "id_user": 1,
 "username": "sample string 2",
 "password": "sample string 3",
 "is_doctor": 4,
}