mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-05-17 21:49:33 +08:00
Update Globalization (SqlServer)
This commit is contained in:
parent
ab2101fb3a
commit
5fb5d38039
@ -1,5 +1,6 @@
|
|||||||
using System;
|
using System;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
|
using System.Globalization;
|
||||||
using System.Linq;
|
using System.Linq;
|
||||||
using System.Linq.Expressions;
|
using System.Linq.Expressions;
|
||||||
using System.Text;
|
using System.Text;
|
||||||
@ -425,6 +426,10 @@ namespace SqlSugar
|
|||||||
}
|
}
|
||||||
else if (UtilMethods.IsNumber(type.Name))
|
else if (UtilMethods.IsNumber(type.Name))
|
||||||
{
|
{
|
||||||
|
if (value is decimal v)
|
||||||
|
{
|
||||||
|
return v.ToString(UtilConstants.EnCultureInfo);
|
||||||
|
}
|
||||||
if (value.ObjToString().Contains(","))
|
if (value.ObjToString().Contains(","))
|
||||||
{
|
{
|
||||||
return $"'{value}'";
|
return $"'{value}'";
|
||||||
|
@ -1,6 +1,7 @@
|
|||||||
using System;
|
using System;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.Dynamic;
|
using System.Dynamic;
|
||||||
|
using System.Globalization;
|
||||||
using System.Linq;
|
using System.Linq;
|
||||||
using System.Text;
|
using System.Text;
|
||||||
namespace SqlSugar
|
namespace SqlSugar
|
||||||
@ -62,7 +63,7 @@ namespace SqlSugar
|
|||||||
typeof(short),
|
typeof(short),
|
||||||
typeof(ushort),
|
typeof(ushort),
|
||||||
};
|
};
|
||||||
|
internal static CultureInfo EnCultureInfo = new CultureInfo("en");
|
||||||
|
|
||||||
internal static string[] DateTypeStringList = new string[]
|
internal static string[] DateTypeStringList = new string[]
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user