C# Azure移动服务pullasync未检索数据
我已经遵循了教程(针对XamarinAndroid)中描述的所有步骤,但在我像这样查询ToToTable之后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(); 效果很好,因为我可以在云中看到我通过应用程序添加的数
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,
}