Update SelectNavQuery_SetList

This commit is contained in:
sunkaixuan
2023-12-19 15:48:03 +08:00
parent 86f55d7c42
commit 671beadae7

View File

@@ -830,7 +830,7 @@ namespace SqlSugar
var changeValue = UtilMethods.ChangeType2(kv.Value, propertyInfo.PropertyType);
propertyInfo.SetValue(addItem, changeValue);
}
if (kv.Value == DBNull.Value && UtilMethods.GetUnderType(propertyInfo.PropertyType).IsIn(typeof(int), typeof(long)))
else if (kv.Value == DBNull.Value && UtilMethods.GetUnderType(propertyInfo.PropertyType).IsIn(typeof(int), typeof(long)))
{
var changeValue = UtilMethods.ChangeType2(0, propertyInfo.PropertyType);