我正在尝试使用ActiveAndroid批量更新列,以下是我的代码:
new Update(SomeModel.class).set("Enabled = 0").execute();
StackOverflowError
错误。Update()
查询吗?在ActiveAndroid的wiki中没有任何说明。
编辑:
这个语法是正确的:
new Update(SomeModel.class)
.set("Enabled = 0")
.where("Account = ?", account.getId())
.execute();
如果不需要,您可以跳过where
。