Synchronization code

This commit is contained in:
sunkaixuan
2023-06-22 17:17:39 +08:00
parent 797410f5a5
commit 9b7d48633c

View File

@@ -1,5 +1,4 @@
using Newtonsoft.Json.Linq; using Newtonsoft.Json.Linq;
using System;
using System.Collections.Generic; using System.Collections.Generic;
using System.Linq; using System.Linq;
using System.Text; using System.Text;
@@ -37,9 +36,7 @@ namespace SqlSugar
} }
private bool IsFieldName(JToken item) private bool IsFieldName(JToken item)
{ {
return return item.ObjToString().ToLower().Contains("fieldname");
item?.GetType() == typeof(JObject)&&
item.ObjToString().ToLower().Contains("fieldname");
} }
private bool IsArraySingleItem(JToken item) private bool IsArraySingleItem(JToken item)
{ {