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