Browse Source

Add Odbc

SqlSugar5
sunkaixuan 2 years ago
parent
commit
6b968af5af
  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

@ -418,6 +418,10 @@ namespace SqlSugar
Check.Exception(SugarCompatible.IsFramework, "GBase only support .net core");
InstanceFactory.CustomDllName = SugarCompatible.IsFramework ? "SqlSugar.GBase" : "SqlSugar.GBaseCore";
break;
case DbType.Odbc:
Check.Exception(SugarCompatible.IsFramework, "Odbc only support .net core");
InstanceFactory.CustomDllName = SugarCompatible.IsFramework ? "SqlSugar.Odbc" : "SqlSugar.OdbcCore";
break;
default:
throw new Exception("ConnectionConfig.DbType is null");
}

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

@ -22,6 +22,7 @@ namespace SqlSugar
HG,
ClickHouse,
GBase,
Odbc,
Custom =900
}
}

Loading…
Cancel
Save