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() }; }