mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-07-16 07:57:33 +08:00
Update dto
This commit is contained in:
parent
577fbdc775
commit
dc75eb7927
@ -813,6 +813,10 @@ namespace SqlSugar
|
|||||||
var changeValue = UtilMethods.ChangeType2(0, propertyInfo.PropertyType);
|
var changeValue = UtilMethods.ChangeType2(0, propertyInfo.PropertyType);
|
||||||
propertyInfo.SetValue(addItem, changeValue);
|
propertyInfo.SetValue(addItem, changeValue);
|
||||||
}
|
}
|
||||||
|
else if (kv.Value == DBNull.Value)
|
||||||
|
{
|
||||||
|
propertyInfo.SetValue(addItem,null);
|
||||||
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
propertyInfo.SetValue(addItem, kv.Value);
|
propertyInfo.SetValue(addItem, kv.Value);
|
||||||
|
Loading…
Reference in New Issue
Block a user