Update Subquery.ToList

This commit is contained in:
sunkaixuan 2022-12-27 19:19:02 +08:00
parent 5ae4f97564
commit 9ae5e0d2df

View File

@ -692,6 +692,10 @@ namespace SqlSugar
{
return result.Replace("/**/*", "");
}
if (this.IsSingle() && this.SubToListParameters != null&& expression is LambdaExpression && this.SubToListParameters.Count > 0 && this.TableShortName == null)
{
this.TableShortName =this.Builder.GetTranslationColumnName((expression as LambdaExpression).Parameters[0].Name);
}
if (result.Contains(".*") && this.IsSingle())
{
return "*";