Browse Source

Synchronization code

pull/33/head
sunkaixuan 1 year ago
parent
commit
c4a2955e37
  1. 4
      Src/Asp.NetCore2/SqlSugar/ExpressionsToSql/Subquery/Items/SubGroupBy.cs

4
Src/Asp.NetCore2/SqlSugar/ExpressionsToSql/Subquery/Items/SubGroupBy.cs

@ -69,6 +69,10 @@ namespace SqlSugar
var selfParameterName = this.Context.GetTranslationColumnName((argExp as LambdaExpression).Parameters.First().Name) + UtilConstants.Dot; var selfParameterName = this.Context.GetTranslationColumnName((argExp as LambdaExpression).Parameters.First().Name) + UtilConstants.Dot;
if (this.Context.JoinIndex == 0) if (this.Context.JoinIndex == 0)
result = result.Replace(selfParameterName, SubTools.GetSubReplace(this.Context)); result = result.Replace(selfParameterName, SubTools.GetSubReplace(this.Context));
if (this.Context.CurrentShortName == null)
{
this.Context.CurrentShortName =this.Context.GetTranslationColumnName(ExpressionTool.GetParameters(exp).FirstOrDefault().Name);
}
return result; return result;
} }
} }

Loading…
Cancel
Save