From e4f6e5eb4d332655868bb3e8e1867905dbe0172f Mon Sep 17 00:00:00 2001 From: sunkaixuan <610262374@qq.com> Date: Sat, 7 May 2022 13:40:06 +0800 Subject: [PATCH] - --- Src/Asp.NetCore2/SqlSugar/Infrastructure/ContextMethods.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Src/Asp.NetCore2/SqlSugar/Infrastructure/ContextMethods.cs b/Src/Asp.NetCore2/SqlSugar/Infrastructure/ContextMethods.cs index cd112429f..93a1a0d55 100644 --- a/Src/Asp.NetCore2/SqlSugar/Infrastructure/ContextMethods.cs +++ b/Src/Asp.NetCore2/SqlSugar/Infrastructure/ContextMethods.cs @@ -757,7 +757,7 @@ namespace SqlSugar { // ConditionalType = (ConditionalType)Convert.ToInt32(), FieldName = item["FieldName"] + "", - CSharpTypeName = item["CSharpTypeName"] ==null?null: item["CSharpTypeName"].ObjToString(), + CSharpTypeName = item["CSharpTypeName"].ObjToString().IsNullOrEmpty() ? null: item["CSharpTypeName"].ObjToString(), FieldValue = item["FieldValue"].Value()==null?null: item["FieldValue"].ToString() }; if (typeValue.IsInt()) @@ -796,7 +796,7 @@ namespace SqlSugar { ConditionalType = (ConditionalType)Convert.ToInt32(value["ConditionalType"].Value()), FieldName = value["FieldName"] + "", - CSharpTypeName= value["CSharpTypeName"]==null?null : value["CSharpTypeName"].ObjToString(), + CSharpTypeName= value["CSharpTypeName"].ObjToString().IsNullOrEmpty()? null : value["CSharpTypeName"].ObjToString(), FieldValue = value["FieldValue"].Value() == null ? null : value["FieldValue"].ToString() }; }