@ -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 = resolveExpress.SingleTableNameSubqueryShortName;
this.TableShortName =this.Builder.GetTranslationColumnName(resolveExpress.SingleTableNameSubqueryShortName);
}
return result;
@ -67,7 +67,7 @@ namespace SqlSugar
var parameters = (exp.Arguments[0] as LambdaExpression).Parameters;
if (parameters != null && parameters.Count > 0)
this.Context.CurrentShortName = this.Context.SqlTranslationLeft + parameters[0] + this.Context.SqlTranslationRight;
this.Context.CurrentShortName = this.Context.GetTranslationColumnName(parameters[0].ObjToString());
@ -79,7 +79,7 @@ namespace SqlSugar
var parameters = (exp.Arguments[1] as LambdaExpression).Parameters;