mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-09-24 04:53:45 +08:00
Update exp to sql
This commit is contained in:
@@ -55,7 +55,7 @@ namespace SqlSugar
|
||||
}
|
||||
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;
|
||||
}
|
||||
|
||||
@@ -64,5 +64,10 @@ namespace SqlSugar
|
||||
result = result.Replace(selfParameterName, SubTools.GetSubReplace(this.Context));
|
||||
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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user