Synchronization code

This commit is contained in:
sunkaixuan 2024-01-12 02:40:37 +08:00
parent 7f439ece02
commit dfbd0a35f5

View File

@ -178,6 +178,11 @@ namespace SqlSugar
var select = copyContext.Result.GetString();
if (dic.Count > 0 && appendColumns.Count == 0)
{
if (copyContext.Parameters?.Any()==true)
{
this.Context.Parameters.AddRange(copyContext.Parameters);
select = select.Replace("), AS", ") AS");
}
return select + ",@sugarIndex as sugarIndex"; ;
}
else if (dic.Count > 0 && appendColumns.Count > 0)