Browse Source

Update Subquery.ToList

pull/30/head
sunkaixuan 2 years ago
parent
commit
9ae5e0d2df
  1. 4
      Src/Asp.Net/SqlSugar/Abstract/SqlBuilderProvider/QueryBuilder.cs

4
Src/Asp.Net/SqlSugar/Abstract/SqlBuilderProvider/QueryBuilder.cs

@ -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 "*";

Loading…
Cancel
Save