diff --git a/Src/Asp.NetCore2/SqlSugar/Infrastructure/ContextMethods.cs b/Src/Asp.NetCore2/SqlSugar/Infrastructure/ContextMethods.cs index 3fd2ecbe0..aaff8a2c7 100644 --- a/Src/Asp.NetCore2/SqlSugar/Infrastructure/ContextMethods.cs +++ b/Src/Asp.NetCore2/SqlSugar/Infrastructure/ContextMethods.cs @@ -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(); }