mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-09-18 17:48:11 +08:00
Synchronization code
This commit is contained in:
@@ -687,7 +687,11 @@ namespace SqlSugar
|
||||
{
|
||||
return false;
|
||||
}
|
||||
else if (dataType.EqualCase("numeric") && properyTypeName.EqualCase("decimal"))
|
||||
else if (properyTypeName.IsIn("int", "long") && dataType.EqualCase("decimal") && dc.Length == 38 && dc.DecimalDigits == 127)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
else if (dataType.EqualCase("numeric") && properyTypeName.EqualCase("decimal"))
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
@@ -58,6 +58,12 @@ namespace SqlSugar
|
||||
{
|
||||
result.DataType = item.DataType;
|
||||
}
|
||||
else if (item.DataType == null && item.UnderType == UtilConstants.LongType)
|
||||
{
|
||||
result.Length = 0;
|
||||
result.DecimalDigits = 0;
|
||||
result.DataType = "NUMBER(19,0)";
|
||||
}
|
||||
else if (propertyType.IsEnum())
|
||||
{
|
||||
result.DataType = this.Context.Ado.DbBind.GetDbTypeName(item.Length > 9 ? UtilConstants.LongType.Name : UtilConstants.IntType.Name);
|
||||
|
@@ -19,6 +19,18 @@ namespace SqlSugar
|
||||
{
|
||||
result.DataType = item.DataType;
|
||||
}
|
||||
else if (item.DataType==null&&item.UnderType == UtilConstants.LongType)
|
||||
{
|
||||
result.Length = 0;
|
||||
result.DecimalDigits = 0;
|
||||
result.DataType = "NUMBER(19,0)";
|
||||
}
|
||||
//else if (item.DataType == null && item.UnderType == UtilConstants.IntType)
|
||||
//{
|
||||
// result.Length = 0;
|
||||
// result.DecimalDigits = 0;
|
||||
// result.DataType = "NUMBER(9,0)";
|
||||
//}
|
||||
else if (propertyType.IsEnum())
|
||||
{
|
||||
result.DataType = this.Context.Ado.DbBind.GetDbTypeName(item.Length > 9 ? UtilConstants.LongType.Name : UtilConstants.IntType.Name);
|
||||
|
Reference in New Issue
Block a user