mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-10-15 18:55:07 +08:00
Support db2
This commit is contained in:
@@ -549,6 +549,10 @@ namespace SqlSugar
|
||||
case DbType.GoldenDB:
|
||||
config.DbType = DbType.MySql;
|
||||
break;
|
||||
case DbType.DB2:
|
||||
Check.Exception(SugarCompatible.IsFramework, "Db2 only support .net core");
|
||||
InstanceFactory.CustomDllName = "SqlSugar.Db2Core";
|
||||
break;
|
||||
default:
|
||||
throw new Exception("ConnectionConfig.DbType is null");
|
||||
}
|
||||
|
@@ -36,6 +36,7 @@ namespace SqlSugar
|
||||
TDSQLForPGODBC,
|
||||
TDSQL,
|
||||
HANA,
|
||||
DB2,
|
||||
Custom =900
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user