Support db2

This commit is contained in:
sunkaixuan
2025-03-11 17:41:14 +08:00
parent 923af79973
commit e433ee7404
2 changed files with 5 additions and 0 deletions

View File

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

View File

@@ -36,6 +36,7 @@ namespace SqlSugar
TDSQLForPGODBC,
TDSQL,
HANA,
DB2,
Custom =900
}
}