From 1d764920c0c106916bdddf6ff8c9363a8af9580a Mon Sep 17 00:00:00 2001 From: sunkaixuan <610262374@qq.com> Date: Tue, 12 Jul 2022 19:13:11 +0800 Subject: [PATCH] Update ContextMethod --- Src/Asp.Net/SqlSugar/Infrastructure/ContextMethods.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Src/Asp.Net/SqlSugar/Infrastructure/ContextMethods.cs b/Src/Asp.Net/SqlSugar/Infrastructure/ContextMethods.cs index 3fd2ecbe0..aaff8a2c7 100644 --- a/Src/Asp.Net/SqlSugar/Infrastructure/ContextMethods.cs +++ b/Src/Asp.Net/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(); }