Merge branch 'SqlSugar5' of github.com:donet5/SqlSugar

This commit is contained in:
sunkaixuan
2022-08-11 16:22:22 +08:00

View File

@@ -456,7 +456,10 @@ namespace SqlSugar
var addItem = readerValues[info]; var addItem = readerValues[info];
if (addItem == DBNull.Value) if (addItem == DBNull.Value)
addItem = null; 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(); addItem= addItem.ObjToInt();
} }