Browse Source

Update UpdateBuilder

SqlSugar5
sunkaixuan 2 years ago
parent
commit
752f375707
  1. 7
      Src/Asp.Net/SqlSugar/Abstract/SqlBuilderProvider/UpdateBuilder.cs

7
Src/Asp.Net/SqlSugar/Abstract/SqlBuilderProvider/UpdateBuilder.cs

@ -365,9 +365,16 @@ namespace SqlSugar
return value;
}
else if (UtilMethods.IsNumber(type.Name))
{
if (value.ObjToString().Contains(","))
{
return $"'{value}'";
}
else
{
return value;
}
}
else
{
return "N'" + value.ToString() + "'";

Loading…
Cancel
Save