From c896b1da5a904f6fbd29b0216fe84fc62a047101 Mon Sep 17 00:00:00 2001 From: sunkaixuan <610262374@qq.com> Date: Wed, 19 Jul 2023 11:48:38 +0800 Subject: [PATCH] Synchronization code --- .../SqlSugar/Abstract/SugarProvider/SqlSugarAccessory.cs | 4 ++++ Src/Asp.Net/SqlSugar/Enum/DbType.cs | 1 + 2 files changed, 5 insertions(+) diff --git a/Src/Asp.Net/SqlSugar/Abstract/SugarProvider/SqlSugarAccessory.cs b/Src/Asp.Net/SqlSugar/Abstract/SugarProvider/SqlSugarAccessory.cs index cb5c2a1c9..afc2f8088 100644 --- a/Src/Asp.Net/SqlSugar/Abstract/SugarProvider/SqlSugarAccessory.cs +++ b/Src/Asp.Net/SqlSugar/Abstract/SugarProvider/SqlSugarAccessory.cs @@ -478,6 +478,10 @@ namespace SqlSugar case DbType.Odbc: InstanceFactory.CustomDllName = SugarCompatible.IsFramework ? "SqlSugar.Odbc" : "SqlSugar.OdbcCore"; break; + case DbType.OceanBaseForOracle: + Check.Exception(SugarCompatible.IsFramework, "OceanBaseForOracle only support .net core"); + InstanceFactory.CustomDllName = SugarCompatible.IsFramework ? "SqlSugar.OceanBaseForOracle" : "SqlSugar.OceanBaseForOracleCore"; + break; default: throw new Exception("ConnectionConfig.DbType is null"); } diff --git a/Src/Asp.Net/SqlSugar/Enum/DbType.cs b/Src/Asp.Net/SqlSugar/Enum/DbType.cs index 143ac64fa..54865dd56 100644 --- a/Src/Asp.Net/SqlSugar/Enum/DbType.cs +++ b/Src/Asp.Net/SqlSugar/Enum/DbType.cs @@ -23,6 +23,7 @@ namespace SqlSugar ClickHouse, GBase, Odbc, + OceanBaseForOracle, Custom =900 } }