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

@ -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();

View File

@ -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;