|
|
@ -840,10 +840,7 @@ namespace SqlSugar |
|
|
|
var newName = itemParameter.ParameterName + "_q_" + index; |
|
|
|
SugarParameter parameter = new SugarParameter(newName, itemParameter.Value); |
|
|
|
parameter.DbType = itemParameter.DbType; |
|
|
|
itemSql = Regex.Replace(itemSql,string.Format(@"{0} ","\\"+itemParameter.ParameterName), newName+" ",RegexOptions.IgnoreCase); |
|
|
|
itemSql = Regex.Replace(itemSql, string.Format(@"{0}\)", "\\" + itemParameter.ParameterName), newName+")", RegexOptions.IgnoreCase); |
|
|
|
itemSql = Regex.Replace(itemSql, string.Format(@"{0}\,", "\\" + itemParameter.ParameterName), newName+",", RegexOptions.IgnoreCase); |
|
|
|
itemSql = Regex.Replace(itemSql, string.Format(@"{0}$", "\\" + itemParameter.ParameterName), newName, RegexOptions.IgnoreCase); |
|
|
|
itemSql = UtilMethods.ReplaceSqlParameter(itemSql, itemParameter, newName); |
|
|
|
addParameters.Add(parameter); |
|
|
|
} |
|
|
|
parsmeters.AddRange(addParameters); |
|
|
|