Browse Source

code optimization

pull/8/head
sunkaixuna 3 years ago
parent
commit
86977008c4
  1. 4
      Src/Asp.Net/SqlSugar/Abstract/SqlBuilderProvider/InsertBuilder.cs

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

@ -206,6 +206,10 @@ namespace SqlSugar
{
return "N'" + value.ToString().ToSqlFilter() + "'";
}
else if (type == UtilConstants.FloatType)
{
return "N'" +Convert.ToDouble(value).ToString() + "'";
}
else
{
return "N'" + value.ToString() + "'";

Loading…
Cancel
Save