Browse Source

-

pull/17/head
sunkaixuan 3 years ago
parent
commit
0c074d8358
  1. 2
      Src/Asp.Net/SqlSugar/Abstract/SqlBuilderProvider/QueryBuilder.cs

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

@ -265,7 +265,7 @@ namespace SqlSugar
if (isSingleTableHasSubquery)
{
Check.Exception(!string.IsNullOrEmpty(this.TableShortName) && resolveExpress.SingleTableNameSubqueryShortName != this.TableShortName, "{0} and {1} need same name", resolveExpress.SingleTableNameSubqueryShortName, this.TableShortName);
this.TableShortName =this.Builder.GetTranslationColumnName(resolveExpress.SingleTableNameSubqueryShortName);
this.TableShortName =resolveExpress.SingleTableNameSubqueryShortName;
}
return result;
}

Loading…
Cancel
Save