Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/csharp/299.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
C# 如何在azure移动服务中删除特定记录_C#_Azure_Windows Phone 8.1_Azure Mobile Services - Fatal编程技术网

C# 如何在azure移动服务中删除特定记录

C# 如何在azure移动服务中删除特定记录,c#,azure,windows-phone-8.1,azure-mobile-services,C#,Azure,Windows Phone 8.1,Azure Mobile Services,如何在azure移动服务中删除特定记录。 例如,我在azure移动服务中有一个名为country的表,它有两列 国家识别号 国名 如果我想删除国家/地区id为5的记录。如何执行此操作 //全局变量 private MobileServiceCollection<country, country> items; private IMobileServiceTable<country> todoTable = App.MobileService.GetTable<c

如何在azure移动服务中删除特定记录。 例如,我在azure移动服务中有一个名为country的表,它有两列 国家识别号 国名

如果我想删除国家/地区id为5的记录。如何执行此操作

//全局变量

 private MobileServiceCollection<country, country> items;
 private IMobileServiceTable<country> todoTable = App.MobileService.GetTable<country>();

您需要调用
deleteAncy
并传递要删除的项目。在本例中,包含您的
国家/地区id
的项目

等待ToToTable.DeleteAsync(国家/地区)


您可以在此处阅读更多文档:

谢谢您的帮助。我已经得出这样的结论:country item=wait todoTable.LookupAsync(tbox\u cid.Text);等待ToToTable.DeleteAsync(项)`
 class country
 {
    public string id { get; set; }
    public string country_name { get; set; }
    public int country_id { get; set; }
 }