Browse Source

Update exp to sql

pull/31/head
sunkaixuan 2 years ago
parent
commit
ee488a4f95
  1. 2
      Src/Asp.NetCore2/SqlSugar/ExpressionsToSql/Subquery/Items/SubWhere.cs

2
Src/Asp.NetCore2/SqlSugar/ExpressionsToSql/Subquery/Items/SubWhere.cs

@ -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));

Loading…
Cancel
Save