mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-04-05 17:37:58 +08:00
Add Odbc
This commit is contained in:
parent
6b968af5af
commit
a3b7d6403c
@ -418,6 +418,10 @@ namespace SqlSugar
|
|||||||
Check.Exception(SugarCompatible.IsFramework, "GBase only support .net core");
|
Check.Exception(SugarCompatible.IsFramework, "GBase only support .net core");
|
||||||
InstanceFactory.CustomDllName = SugarCompatible.IsFramework ? "SqlSugar.GBase" : "SqlSugar.GBaseCore";
|
InstanceFactory.CustomDllName = SugarCompatible.IsFramework ? "SqlSugar.GBase" : "SqlSugar.GBaseCore";
|
||||||
break;
|
break;
|
||||||
|
case DbType.Odbc:
|
||||||
|
Check.Exception(SugarCompatible.IsFramework, "Odbc only support .net core");
|
||||||
|
InstanceFactory.CustomDllName = SugarCompatible.IsFramework ? "SqlSugar.Odbc" : "SqlSugar.OdbcCore";
|
||||||
|
break;
|
||||||
default:
|
default:
|
||||||
throw new Exception("ConnectionConfig.DbType is null");
|
throw new Exception("ConnectionConfig.DbType is null");
|
||||||
}
|
}
|
||||||
|
@ -22,6 +22,7 @@ namespace SqlSugar
|
|||||||
HG,
|
HG,
|
||||||
ClickHouse,
|
ClickHouse,
|
||||||
GBase,
|
GBase,
|
||||||
|
Odbc,
|
||||||
Custom =900
|
Custom =900
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user