Update SugarColumns.Sql

This commit is contained in:
sunkaixuan 2024-03-27 19:37:07 +08:00
parent 09e34ee51f
commit 673d68d638
2 changed files with 2 additions and 2 deletions

View File

@ -299,7 +299,7 @@ namespace SqlSugar
{
if (columnInfo.Value == null)
{
return string.Format(columnInfo.InsertSql, "null");
return string.Format(columnInfo.InsertSql, "null").Replace("'null'","null");
}
else
{

View File

@ -486,7 +486,7 @@ namespace SqlSugar
{
if (columnInfo.Value == null)
{
return string.Format(columnInfo.UpdateSql, "null");
return string.Format(columnInfo.UpdateSql, "null").Replace("'null'", "null");
}
else
{