Update exp to sql

This commit is contained in:
sunkaixuan 2023-02-20 18:23:09 +08:00
parent 6977b10255
commit ee488a4f95

View File

@ -89,7 +89,7 @@ namespace SqlSugar
var selfParameterName = Context.GetTranslationColumnName((argExp as LambdaExpression).Parameters.First().Name) + UtilConstants.Dot;
if (this.Context.JoinIndex == 0&&result.Contains(" FROM "))
{
this.Context.CurrentShortName= selfParameterName;
this.Context.CurrentShortName= selfParameterName.ObjToString().TrimEnd('.');
}
else if (this.Context.JoinIndex == 0)
result = result.Replace(selfParameterName, SubTools.GetSubReplace(this.Context));