diff --git a/Src/Asp.NetCore2/SqlSugar/Abstract/SqlBuilderProvider/QueryBuilder.cs b/Src/Asp.NetCore2/SqlSugar/Abstract/SqlBuilderProvider/QueryBuilder.cs index 27fad01e0..c5f62705e 100644 --- a/Src/Asp.NetCore2/SqlSugar/Abstract/SqlBuilderProvider/QueryBuilder.cs +++ b/Src/Asp.NetCore2/SqlSugar/Abstract/SqlBuilderProvider/QueryBuilder.cs @@ -802,12 +802,16 @@ namespace SqlSugar { result= GetExpressionValue(expression, this.SelectType).GetResultString(); } - if (result == null) + if (result == null&& this.AppendNavInfo?.AppendProperties==null) { return "*"; } if (this.AppendNavInfo?.AppendProperties?.Any() ==true) { + if (result == null) + { + result = "*"; + } result += ","; var shortName = ""; if (this.TableShortName.HasValue())