Browse Source

Update exp to sql

pull/26/MERGE
sunkaixuan 2 years ago
parent
commit
65091b21c7
  1. 8
      Src/Asp.NetCore2/SqlSugar/ExpressionsToSql/Subquery/Items/SubWhere.cs

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

@ -45,7 +45,13 @@ namespace SqlSugar
new SubSelect() { Context = this.Context }.SetShortName(exp, "+");
}
var argExp = exp.Arguments[0];
var result = "WHERE " + SubTools.GetMethodValue(Context, argExp, ResolveExpressType.WhereMultiple);
var copyContext = this.Context;
if (this.Context.JoinIndex > 0)
{
copyContext = this.Context.GetCopyContextWithMapping();
copyContext.IsSingle = false;
}
var result = "WHERE " + SubTools.GetMethodValue(copyContext, argExp, ResolveExpressType.WhereMultiple);

Loading…
Cancel
Save