Update exp to sql

This commit is contained in:
sunkaixuan
2023-06-04 23:54:12 +08:00
parent 538f966b99
commit 5b46feb5aa

View File

@@ -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
{