From e49996a392c62dc24f6cf4be3a8e1967c1354a53 Mon Sep 17 00:00:00 2001 From: sunkaixuan <610262374@qq.com> Date: Fri, 5 Aug 2022 19:09:58 +0800 Subject: [PATCH] Update bool --- Src/Asp.Net/SqlSugar/Utilities/UtilMethods.cs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Src/Asp.Net/SqlSugar/Utilities/UtilMethods.cs b/Src/Asp.Net/SqlSugar/Utilities/UtilMethods.cs index 2ac280d1c..646b3a9d2 100644 --- a/Src/Asp.Net/SqlSugar/Utilities/UtilMethods.cs +++ b/Src/Asp.Net/SqlSugar/Utilities/UtilMethods.cs @@ -589,6 +589,10 @@ namespace SqlSugar { return Convert.ToInt32(item.FieldValue); } + else if (item.FieldValue!=null&&item.CSharpTypeName.EqualCase(UtilConstants.BoolType.Name)) + { + return Convert.ToBoolean(item.FieldValue.ToLower()); + } else if (item.CSharpTypeName.EqualCase(UtilConstants.LongType.Name)) { return Convert.ToInt64(item.FieldValue);