CRUD操作Azure移动服务表服务Windows Phone 8.1

时间:2016-01-03 04:15:01

标签: javascript c# azure windows-phone-8.1 azure-mobile-services

我是Windows移动应用开发的新手。我发现了许多教程,如here,关于创建azure移动服务和向表中添加数据。但我找不到任何教程如何从tabe检索数据回XAML并执行CRUD操作。您能否引导我阅读任何解释Azure移动服务表服务中的CRUD操作的文章。简单的例子对像我这样的新手更有帮助。提前谢谢。

1 个答案:

答案 0 :(得分:1)

我建议您阅读Azure Microsoft网站上的所有文档和示例代码。吨数。

Get started with Mobile Services

How to use the managed client library for Azure Mobile Services

Mobile Apps documentation

使用此信息,您应该能够使示例应用程序正常工作,并开始为您的应用程序构建设计。

一开始看起来有点像,但是一旦你进行了服务设置,获取数据就像我在我的通用应用程序中使用的代码一样简单。

CRUD呼叫......

public static MobileServiceClient MobileService { get; private set; }
await App.MobileService.GetTable<Vehicles>().UpdateAsync(vehicle);
await App.MobileService.GetTable<Vehicles>().InsertAsync(vehicle);
await App.MobileService.GetTable<Vehicles>().DeleteAsync(vehicle);