From 86977008c4cc6b1efc841e511db910137198a510 Mon Sep 17 00:00:00 2001 From: sunkaixuna <610262374@qq.com> Date: Tue, 17 Aug 2021 11:50:14 +0800 Subject: [PATCH] code optimization --- .../SqlSugar/Abstract/SqlBuilderProvider/InsertBuilder.cs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Src/Asp.Net/SqlSugar/Abstract/SqlBuilderProvider/InsertBuilder.cs b/Src/Asp.Net/SqlSugar/Abstract/SqlBuilderProvider/InsertBuilder.cs index 29653e29c..514b8a78c 100644 --- a/Src/Asp.Net/SqlSugar/Abstract/SqlBuilderProvider/InsertBuilder.cs +++ b/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() + "'";