mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-05-05 13:17:57 +08:00
Update Oracle CodeFirst
This commit is contained in:
parent
2c01ec7b0b
commit
5535cc1e32
@ -692,7 +692,7 @@ namespace SqlSugar
|
||||
{
|
||||
return false;
|
||||
}
|
||||
else if (properyTypeName.IsIn("int", "long") && dataType.EqualCase("decimal") && dc.Length == 38 && dc.DecimalDigits == 127)
|
||||
else if (properyTypeName.IsIn("int", "long") && dataType.EqualCase("decimal") && dc.Length == 38 && dc.DecimalDigits == 127)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
@ -700,6 +700,10 @@ namespace SqlSugar
|
||||
{
|
||||
return false;
|
||||
}
|
||||
else if (ec.UnderType == UtilConstants.BoolType && dc.OracleDataType?.EqualCase("number")==true)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
else
|
||||
{
|
||||
return properyTypeName.ToLower() != dataType.ToLower();
|
||||
|
@ -25,6 +25,12 @@ namespace SqlSugar
|
||||
result.DecimalDigits = 0;
|
||||
result.DataType = "NUMBER(19,0)";
|
||||
}
|
||||
else if (item.DataType == null && item.UnderType == UtilConstants.BoolType)
|
||||
{
|
||||
result.Length = 0;
|
||||
result.DecimalDigits = 0;
|
||||
result.DataType = "NUMBER(1,0)";
|
||||
}
|
||||
//else if (item.DataType == null && item.UnderType == UtilConstants.IntType)
|
||||
//{
|
||||
// result.Length = 0;
|
||||
|
Loading…
Reference in New Issue
Block a user