Browse Source

db.Queryable.Includes.Select.ToList

pull/32/head
sunkaixuan 2 years ago
parent
commit
ccb2cc0bc4
  1. 6
      Src/Asp.NetCore2/SqlSugar/Abstract/SqlBuilderProvider/QueryBuilder.cs

6
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())

Loading…
Cancel
Save