chore: field name limitation.
parent
31c16cc7e2
commit
46fcf052cf
|
@ -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);
|
||||||
|
|
Loading…
Reference in New Issue