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