Browse Source

Optimization SqlServer update

SqlSugar5
sunkaixuan 2 years ago
parent
commit
ca6231a8ad
  1. 4
      Src/Asp.Net/SqlSugar/Abstract/SqlBuilderProvider/UpdateBuilder.cs

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

@ -364,6 +364,10 @@ namespace SqlSugar
{
return value;
}
else if (UtilMethods.IsNumber(type.Name))
{
return value;
}
else
{
return "N'" + value.ToString() + "'";

Loading…
Cancel
Save