mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-04-05 17:37:58 +08:00
ValueObject json type
This commit is contained in:
parent
662074fefe
commit
009ea48c0a
@ -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));
|
||||
|
Loading…
Reference in New Issue
Block a user