From 5e8bbb54bab76ce89158452582e29730fd7fcef7 Mon Sep 17 00:00:00 2001 From: tengfei8771 <532050072@qq.com> Date: Wed, 14 Jun 2023 15:00:40 +0800 Subject: [PATCH] =?UTF-8?q?1.=E5=AE=8C=E5=96=84=E9=AA=8C=E8=AF=81=E9=80=BB?= =?UTF-8?q?=E8=BE=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Src/Asp.NetCore2/SqlSugar/Utilities/ValidateExtensions.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Src/Asp.NetCore2/SqlSugar/Utilities/ValidateExtensions.cs b/Src/Asp.NetCore2/SqlSugar/Utilities/ValidateExtensions.cs index 68a093aff..9bdf780fc 100644 --- a/Src/Asp.NetCore2/SqlSugar/Utilities/ValidateExtensions.cs +++ b/Src/Asp.NetCore2/SqlSugar/Utilities/ValidateExtensions.cs @@ -157,7 +157,7 @@ namespace SqlSugar { if (type.BaseType.IsGenericType) { - return type.BaseType.GetGenericTypeDefinition().FullName == "System.Linq.Enumerable+Iterator`1"; + return type.BaseType?.GetGenericTypeDefinition()?.FullName == "System.Linq.Enumerable+Iterator`1"; } return false; }