InvariantCulture

This commit is contained in:
sunkaixuan 2025-03-31 18:03:08 +08:00
parent c1cd0c6122
commit f97434561d
2 changed files with 6 additions and 1 deletions

View File

@ -3,6 +3,7 @@ using System.Collections.Generic;
using System.Text;
using System.Linq;
using System.Linq.Expressions;
using System.Globalization;
namespace SqlSugar
{
public partial class InsertBuilder : IDMLBuilder
@ -266,6 +267,10 @@ namespace SqlSugar
{
return N+"'" +Convert.ToDouble(value).ToString() + "'";
}
else if (value is decimal v)
{
return v.ToString(CultureInfo.InvariantCulture);
}
else
{
return N+"'" + value.ToString() + "'";

View File

@ -2,7 +2,7 @@
<package >
<metadata>
<id>SqlSugarCore</id>
<version>5.1.4.187</version>
<version>5.1.4.188-preview03</version>
<authors>sunkaixuan</authors>
<owners>果糖大数据科技</owners>
<licenseUrl>http://www.apache.org/licenses/LICENSE-2.0.html</licenseUrl>