From 46fcf052cfa8800bc752f08f18b6da1cc9b88811 Mon Sep 17 00:00:00 2001 From: oneRain Date: Tue, 2 Feb 2021 12:12:46 +0800 Subject: [PATCH] chore: field name limitation. --- Storage/Storage/LCObject.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Storage/Storage/LCObject.cs b/Storage/Storage/LCObject.cs index cdbd90f..67bc2dd 100644 --- a/Storage/Storage/LCObject.cs +++ b/Storage/Storage/LCObject.cs @@ -125,7 +125,8 @@ namespace LeanCloud.Storage { if (key.StartsWith("_")) { 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"); } LCSetOperation setOp = new LCSetOperation(value);