Update ContextMethod

This commit is contained in:
sunkaixuan 2022-07-12 19:13:11 +08:00
parent 10386153f7
commit 1d764920c0

View File

@ -442,7 +442,7 @@ namespace SqlSugar
var addItem = readerValues[info];
if (addItem == DBNull.Value)
addItem = null;
if (prop.PropertyType == UtilConstants.IntType)
if (UtilMethods.GetUnderType(prop.PropertyType) == UtilConstants.IntType)
{
addItem = addItem.ObjToInt();
}