-
Notifications
You must be signed in to change notification settings - Fork 31
2.05 修改|删除数据
winse edited this page Jan 3, 2015
·
1 revision
更新一个对象也是非常简单。例如:将GameScore表中objectId为0c6db13c的游戏分数修改为77.
GameScore game = new GameScore();
game.score = 77;
bmobUnity.Update(TABLENAME, "68ee8131ca", game, (resp, exception) =>
{
if (exception != null)
{
print("修改失败, 失败原因为: " + exception.Message);
return;
}
print("修改成功, @" + resp.updatedAt);
});
从服务器删除对象。例如:将GameScore表中objectId为68ee8131ca的数据删除。
bmobUnity.Delete("GameScore", "68ee8131ca", (resp, exception) =>
{
if (exception != null)
{
print("删除失败, 失败原因为: " + exception.Message);
return;
}
print("删除成功, @" + resp.msg);
});