|
@ -55,7 +55,7 @@ namespace SqlSugar |
|
|
} |
|
|
} |
|
|
if (Regex.IsMatch(result, regex)) |
|
|
if (Regex.IsMatch(result, regex)) |
|
|
{ |
|
|
{ |
|
|
result = "WHERE " + this.Context.Parameters.First(it => it.ParameterName == Regex.Match(result, regex).Groups[1].Value).Value; |
|
|
result = "WHERE " + GetValue(result, regex); |
|
|
return result; |
|
|
return result; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
@ -64,5 +64,10 @@ namespace SqlSugar |
|
|
result = result.Replace(selfParameterName, SubTools.GetSubReplace(this.Context)); |
|
|
result = result.Replace(selfParameterName, SubTools.GetSubReplace(this.Context)); |
|
|
return result; |
|
|
return result; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
private object GetValue(string result, string regex) |
|
|
|
|
|
{ |
|
|
|
|
|
return this.Context.Parameters.First(it => it.ParameterName == Regex.Match(result, regex).Groups[1].Value).Value; |
|
|
|
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|