如何从Microsoft Azure Mobile Services中的表中读取数据并将其放入我的应用程序中?

我正在使用Xamarin Studio和Microsoft Azure Mobile Services。 我正在尝试读取我放入Microsoft Azure Mobile Service中的表中的数据并将其显示在我的应用程序中。 我按照Azure网站上的所有教程进行了操作,但我似乎无法找到如何从表中获取数据。 我想向用户显示他们输入表格的内容。

这是我在表格中输入数据的代码:

//this just sets up the connection and table private static readonly MobileServiceClient MobileService = new MobileServiceClient (UsersConstants.ApplicationURL, UsersConstants.ApplicationKey); private readonly IMobileServiceTable usersTable = MobileService.GetTable(); //this creates a new item var NewItem = new UsersTable (); NewItem.Name = NameTextBox.Text; NewItem.Email = EmailTextBox.Text; NewItem.Password = PasswordTextBox.Text; //this inserts the item into the table I have set up usersTable.InsertAsync(NewItem); 

然后我切换到我的应用程序中的另一个视图(它是一个iOS应用程序),我想从表中获取这些数据并将其放入我的应用程序中。 我一直在寻找,但我还没有找到如何做到这一点。 任何帮助,将不胜感激。 谢谢!

你应该可以做这样的事情(确切的语法可能需要调整)

 async private void GetUsers() { var users = await usersTable.Where (u => u.Name == "Bob").ToListAsync(); }