0

我是windows mobile应用开发新手。我发现很多教程,如here,创建azure移动服务和添加数据到表。但我找不到任何教程如何从Tabe中检索数据返回到XAML并执行CRUD操作。您能否指导我解释Azure移动服务表服务中CRUD操作的任何类型的文章。简单的例子会对像我这样的新手更有帮助。提前致谢。CRUD操作Azure移动服务表服务windows phone 8.1

回答

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); 
+0

你能与我分享你的应用程序。如果你能分享你的应用,我真的很高兴。 –

+0

你可以看到在Windows C#一个简单的Todo应用程序的快速启动,XAML为Windows 10在这里:https://github.com/adrianhall/quickstarts –