From dfc4e91cd645db761127a575f6154fe3302a7447 Mon Sep 17 00:00:00 2001 From: falcon <9504402@qq.com> Date: Thu, 29 Sep 2022 17:32:09 +0800 Subject: [PATCH] =?UTF-8?q?=E5=88=97=E8=AE=BE=E7=BD=AEnullable=E5=8F=AA?= =?UTF-8?q?=E6=94=AF=E6=8C=81RequiredAttribute=E5=92=8CNullable<>?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../DatabaseDefinitions/SugarConnectionConfig.cs | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/Falcon.SugarApi/DatabaseDefinitions/SugarConnectionConfig.cs b/Falcon.SugarApi/DatabaseDefinitions/SugarConnectionConfig.cs index e8b0523..a422a01 100644 --- a/Falcon.SugarApi/DatabaseDefinitions/SugarConnectionConfig.cs +++ b/Falcon.SugarApi/DatabaseDefinitions/SugarConnectionConfig.cs @@ -37,13 +37,13 @@ namespace Falcon.SugarApi.DatabaseDefinitions //if (sc != null) { // c.IsNullable = sc.IsNullable; //} - var isNullableTypes = new Type[] { typeof(string) }; - if (isNullableTypes.Contains(pt)) { - c.IsNullable = true; - } - else { - c.IsNullable = false; - } + //var isNullableTypes = new Type[] { typeof(string) }; + //if (isNullableTypes.Contains(pt)) { + // c.IsNullable = true; + //} + //else { + // c.IsNullable = false; + //} //if (pt == typeof(string) && pt.GetCustomAttribute() == null) { // c.IsNullable = true; //}