chore: field name limitation.

oneRain 2021-02-02 12:12:46 +08:00
parent 31c16cc7e2
commit 46fcf052cf
1 changed files with 2 additions and 1 deletions

View File

@ -125,7 +125,8 @@ namespace LeanCloud.Storage {
if (key.StartsWith("_")) { if (key.StartsWith("_")) {
throw new ArgumentException("key should not start with '_'"); throw new ArgumentException("key should not start with '_'");
} }
if (key == "objectId" || key == "createdAt" || key == "updatedAt") { if (key == "objectId" || key == "createdAt" || key == "updatedAt" ||
key == "className" || key == "ACL") {
throw new ArgumentException($"{key} is reserved by LeanCloud"); throw new ArgumentException($"{key} is reserved by LeanCloud");
} }
LCSetOperation setOp = new LCSetOperation(value); LCSetOperation setOp = new LCSetOperation(value);