mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2026-01-19 17:51:36 +08:00
Update json 2 sql
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
using Newtonsoft.Json.Linq;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
@@ -36,7 +37,9 @@ namespace SqlSugar
|
||||
}
|
||||
private bool IsFieldName(JToken item)
|
||||
{
|
||||
return item.ObjToString().ToLower().Contains("fieldname");
|
||||
return
|
||||
item?.GetType() == typeof(JObject)&&
|
||||
item.ObjToString().ToLower().Contains("fieldname");
|
||||
}
|
||||
private bool IsArraySingleItem(JToken item)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user