db.Queryable.Includes.Select.ToList

This commit is contained in:
sunkaixuan 2023-05-05 00:10:48 +08:00
parent ff8a17cbcb
commit ccb2cc0bc4

View File

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