Merge pull

This commit is contained in:
sunkaixuan
2022-08-11 16:25:13 +08:00
parent 2686008c49
commit a8fd79093c

View File

@@ -456,9 +456,12 @@ namespace SqlSugar
var addItem = readerValues[info];
if (addItem == DBNull.Value)
addItem = null;
if (UtilMethods.GetUnderType(prop.PropertyType) == UtilConstants.IntType)
if (prop.PropertyType == UtilConstants.IntType )
{
addItem = addItem.ObjToInt();
} else if (UtilMethods.GetUnderType(prop.PropertyType) == UtilConstants.IntType && addItem != null)
{
addItem= addItem.ObjToInt();
}
else if (prop.PropertyType.IsEnum()&&addItem is decimal)
{