【发布时间】:2014-03-23 13:40:51
【问题描述】:
我是 windows azure(和 windows phone)的新手,我正在尝试弄清楚如何更新存储在 windows azure 中的记录。
我已使用以下代码成功插入记录:
public class Item
{
public string Id { get; set; }
public string type { get; set; }
public int count { get; set; }
}
private async void insertRiskScore(Item item)
{
await riskTable.InsertAsync(item);
}
private IMobileServiceTable<Item> riskTable = App.MobileService.GetTable<Item>();
var insertItem = new Item { type = "low", count = 0 };
insertRiskScore(insertItem);
var insertItem2 = new Item { type = "med", count = 0 };
insertRiskScore(insertItem2);
我的问题是......我将如何检索存储在数据库中的值并增加计数(例如,获取 type="low" 并增加计数的记录)。
谢谢!!
【问题讨论】:
标签: c# .net azure windows-phone-8 azure-storage