Update Subquery.ToList

This commit is contained in:
sunkaixuan 2022-12-04 00:20:19 +08:00
parent d395093265
commit 29b43a1486
2 changed files with 12 additions and 0 deletions

View File

@ -84,6 +84,14 @@ namespace SqlSugar
{
this.SelectCacheKey = this.SelectCacheKey + string.Join("-", this.JoinQueryInfos.Select(it => it.TableName));
}
if (IsDistinct)
{
result = " DISTINCT " + result;
}
if (this.SubToListParameters != null && this.SubToListParameters.Any())
{
result = SubToListMethod(result);
}
return result;
}
}

View File

@ -148,6 +148,10 @@ namespace SqlSugar
{
result = " DISTINCT " + result;
}
if (this.SubToListParameters != null && this.SubToListParameters.Any())
{
result = SubToListMethod(result);
}
return result;
}
}