简体   繁体   English

使用Xamarin选择在Azure移动服务表上查询

[英]Select Query on Azure Mobile Services Table using Xamarin

I've got to the point where I can insert new records into my database via a test app, but returning a Select query is giving me fits. 我已经可以通过测试应用程序将新记录插入数据库中了,但是返回Select查询正适合我。

Every time I try to implement the sample code found here 每当我尝试实现此处找到的示例代码时

// Select one field -- just the Text
MobileServiceTableQuery<TodoItem> query = todoTable
                .Select(todoItem => todoItem.Text);
List<string> items = await query.ToListAsync();

I get "MobileServiceTableQuery does not exist in the current context.", so I know that I am missing something, but I just can't figure out what it is after hours of fighting with the code. 我得到“ MobileServiceTableQuery在当前上下文中不存在。”,所以我知道我丢失了一些内容,但是经过数小时的代码争夺之后,我仍然无法弄清它到底是什么。

Can someone point me to a sample app or example code that shows how to fully implement this (I'm populating a table view with the result) that is a bit more descriptive so that I can move on with my project? 有人可以指出一个示例应用程序或示例代码,该示例应用程序或示例代码显示了如何完全实现这一点(我用结果填充表格视图),该示例性代码更具描述性,因此我可以继续进行我的项目吗?

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM