diff --git a/Src/Asp.Net/SqlSugar/Utilities/UtilMethods.cs b/Src/Asp.Net/SqlSugar/Utilities/UtilMethods.cs index 8d8b95be7..9abbd127f 100644 --- a/Src/Asp.Net/SqlSugar/Utilities/UtilMethods.cs +++ b/Src/Asp.Net/SqlSugar/Utilities/UtilMethods.cs @@ -85,7 +85,7 @@ namespace SqlSugar //Compatible with.NET CORE parameters case var name = parameter.ParameterName; string newName = name +append+ addIndex; - appendSql =Regex.Replace(appendSql,name,newName,RegexOptions.IgnoreCase); + appendSql = ReplaceSqlParameter(appendSql, parameter, newName); parameter.ParameterName = newName; } }