mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2026-02-27 16:50:33 +08:00
Update exp to sql
This commit is contained in:
@@ -901,9 +901,13 @@ namespace SqlSugar
|
||||
}
|
||||
}
|
||||
//Regex regex = new Regex("\@");
|
||||
if (sql.EndsWith(" =)"))
|
||||
if (!sql.Contains("@"))
|
||||
{
|
||||
sql = sql.Replace(" =)", $" = {newValue})");
|
||||
if (!sql.Contains(newValue))
|
||||
{
|
||||
sql = sql.Replace(" )", $" = {newValue})");
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user