1
我插入到Azure Mobileservice SQL數據庫中,它工作正常,但我想知道是否有錯誤,以便我可以更正它。Azure移動服務InsertAsync獲取狀態
如何從InsertAsync
獲取狀態以查看其成功還是失敗?
public static MobileServiceClient MobileService = new MobileServiceClient(
"https://YOUR-DOMAIN.azure-mobile.net/",
"YOUR-KEY"
);
static IMobileServiceTable<Product> productTable = MobileService.GetTable<Product>();
Product product = new Product {
name = NPDName.Text,
description = NPDDescription.Text,
price = NPDPriceExkl.Text,
tax = NPDTax.Text,
stock = NPDStock.Text,
available = NPDCBAvailable.Checked,
active = true
};
productTable.InsertAsync(product);