mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-12-21 10:59:56 +08:00
Add Odbc
This commit is contained in:
@@ -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
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user