Update oracle

This commit is contained in:
sunkaixuna
2021-11-21 03:01:51 +08:00
parent 8badaa0ed8
commit e6a134d57d
3 changed files with 6 additions and 2 deletions

View File

@@ -20,7 +20,7 @@ namespace SqlSugar
case DbType.Sqlite:
break;
case DbType.Oracle:
return new OracleFastBuilder();
return new OracleFastBuilder(this.entityInfo);
case DbType.PostgreSQL:
return new PostgreSQLFastBuilder(this.entityInfo);
case DbType.Dm:

View File

@@ -9,7 +9,7 @@ namespace SqlSugar
{
public class OracleFastBuilder:IFastBuilder
{
public OracleFastBuilder()
public OracleFastBuilder(EntityInfo entityInfo)
{
throw new Exception("Only.net CORE is supported");
}

View File

@@ -59,6 +59,10 @@ namespace SqlSugar
{
return Convert.ToInt64(value);
}
else if (type.IsIn(UtilConstants.IntType,UtilConstants.LongType,UtilConstants.ShortType))
{
return value;
}
else if (type == UtilConstants.ByteArrayType)
{
string bytesString = "0x" + BitConverter.ToString((byte[])value).Replace("-", "");