Synchronization code

This commit is contained in:
sunkaixuan 2024-06-25 22:25:03 +08:00
parent 009ea48c0a
commit 71d6d52a54

View File

@ -154,6 +154,10 @@ namespace SqlSugar
{
item.PropertyInfo.SetValue(parentObj,UtilMethods.ChangeType2(value, item.PropertyInfo.PropertyType));
}
else if (item.IsJson)
{
item.PropertyInfo.SetValue(parentObj, Newtonsoft.Json.JsonConvert.DeserializeObject(dataReader.GetValue(itemIndex)?.ToString(), item.PropertyInfo.PropertyType));
}
else
{
item.PropertyInfo.SetValue(parentObj, dataReader.GetValue(itemIndex));