Update Oracle CodeFirst

This commit is contained in:
sunkaixuan 2023-10-12 15:35:56 +08:00
parent 2c01ec7b0b
commit 5535cc1e32
2 changed files with 11 additions and 1 deletions

View File

@ -692,7 +692,7 @@ namespace SqlSugar
{ {
return false; 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; return false;
} }
@ -700,6 +700,10 @@ namespace SqlSugar
{ {
return false; return false;
} }
else if (ec.UnderType == UtilConstants.BoolType && dc.OracleDataType?.EqualCase("number")==true)
{
return false;
}
else else
{ {
return properyTypeName.ToLower() != dataType.ToLower(); return properyTypeName.ToLower() != dataType.ToLower();

View File

@ -25,6 +25,12 @@ namespace SqlSugar
result.DecimalDigits = 0; result.DecimalDigits = 0;
result.DataType = "NUMBER(19,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) //else if (item.DataType == null && item.UnderType == UtilConstants.IntType)
//{ //{
// result.Length = 0; // result.Length = 0;