Skip to content

Commit dfbd0a3

Browse files
committed
Synchronization code
1 parent 7f439ec commit dfbd0a3

File tree

1 file changed

+5
-0
lines changed
  • Src/Asp.Net/SqlSugar/ExpressionsToSql/Subquery/Items

1 file changed

+5
-0
lines changed

Src/Asp.Net/SqlSugar/ExpressionsToSql/Subquery/Items/SubToList.cs

+5
Original file line numberDiff line numberDiff line change
@@ -178,6 +178,11 @@ private string GetValueByAuto(MethodCallExpression exp)
178178
var select = copyContext.Result.GetString();
179179
if (dic.Count > 0 && appendColumns.Count == 0)
180180
{
181+
if (copyContext.Parameters?.Any()==true)
182+
{
183+
this.Context.Parameters.AddRange(copyContext.Parameters);
184+
select = select.Replace("), AS", ") AS");
185+
}
181186
return select + ",@sugarIndex as sugarIndex"; ;
182187
}
183188
else if (dic.Count > 0 && appendColumns.Count > 0)

0 commit comments

Comments
 (0)