mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-09-23 12:33:44 +08:00
InvariantCulture
This commit is contained in:
@@ -3,6 +3,7 @@ using System.Collections.Generic;
|
|||||||
using System.Text;
|
using System.Text;
|
||||||
using System.Linq;
|
using System.Linq;
|
||||||
using System.Linq.Expressions;
|
using System.Linq.Expressions;
|
||||||
|
using System.Globalization;
|
||||||
namespace SqlSugar
|
namespace SqlSugar
|
||||||
{
|
{
|
||||||
public partial class InsertBuilder : IDMLBuilder
|
public partial class InsertBuilder : IDMLBuilder
|
||||||
@@ -266,6 +267,10 @@ namespace SqlSugar
|
|||||||
{
|
{
|
||||||
return N+"'" +Convert.ToDouble(value).ToString() + "'";
|
return N+"'" +Convert.ToDouble(value).ToString() + "'";
|
||||||
}
|
}
|
||||||
|
else if (value is decimal v)
|
||||||
|
{
|
||||||
|
return v.ToString(CultureInfo.InvariantCulture);
|
||||||
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
return N+"'" + value.ToString() + "'";
|
return N+"'" + value.ToString() + "'";
|
||||||
|
@@ -2,7 +2,7 @@
|
|||||||
<package >
|
<package >
|
||||||
<metadata>
|
<metadata>
|
||||||
<id>SqlSugarCore</id>
|
<id>SqlSugarCore</id>
|
||||||
<version>5.1.4.187</version>
|
<version>5.1.4.188-preview03</version>
|
||||||
<authors>sunkaixuan</authors>
|
<authors>sunkaixuan</authors>
|
||||||
<owners>果糖大数据科技</owners>
|
<owners>果糖大数据科技</owners>
|
||||||
<licenseUrl>http://www.apache.org/licenses/LICENSE-2.0.html</licenseUrl>
|
<licenseUrl>http://www.apache.org/licenses/LICENSE-2.0.html</licenseUrl>
|
||||||
|
Reference in New Issue
Block a user