Browse Source

Synchronization code

pull/40/head
sunkaixuan 1 year ago
parent
commit
c896b1da5a
  1. 4
      Src/Asp.Net/SqlSugar/Abstract/SugarProvider/SqlSugarAccessory.cs
  2. 1
      Src/Asp.Net/SqlSugar/Enum/DbType.cs

4
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");
}

1
Src/Asp.Net/SqlSugar/Enum/DbType.cs

@ -23,6 +23,7 @@ namespace SqlSugar
ClickHouse,
GBase,
Odbc,
OceanBaseForOracle,
Custom =900
}
}

Loading…
Cancel
Save