Synchronization code

This commit is contained in:
sunkaixuan 2023-12-19 16:03:17 +08:00
parent 671beadae7
commit 33a2de17aa

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);