mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-09-24 04:53:45 +08:00
ValueObject json type
This commit is contained in:
@@ -154,6 +154,10 @@ namespace SqlSugar
|
|||||||
{
|
{
|
||||||
item.PropertyInfo.SetValue(parentObj,UtilMethods.ChangeType2(value, item.PropertyInfo.PropertyType));
|
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
|
else
|
||||||
{
|
{
|
||||||
item.PropertyInfo.SetValue(parentObj, dataReader.GetValue(itemIndex));
|
item.PropertyInfo.SetValue(parentObj, dataReader.GetValue(itemIndex));
|
||||||
|
Reference in New Issue
Block a user