mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-09-20 02:29:39 +08:00
ConfigQuery BUG
This commit is contained in:
@@ -131,7 +131,7 @@ namespace SqlSugar
|
|||||||
foreach (var item in entity.Parameter)
|
foreach (var item in entity.Parameter)
|
||||||
{
|
{
|
||||||
var oldName = item.ParameterName;
|
var oldName = item.ParameterName;
|
||||||
item.ParameterName = oldName + "_con_" + this.Context.ParameterIndex;
|
item.ParameterName = Regex.Split(oldName,"_con_").First() + "_con_" + this.Context.ParameterIndex;
|
||||||
entity.Where = entity.Where.Replace(oldName, item.ParameterName);
|
entity.Where = entity.Where.Replace(oldName, item.ParameterName);
|
||||||
}
|
}
|
||||||
this.Context.ParameterIndex++;
|
this.Context.ParameterIndex++;
|
||||||
|
Reference in New Issue
Block a user