Support DuckDB

This commit is contained in:
sunkaixuan
2025-04-20 12:40:08 +08:00
parent 621413ac6d
commit 8e7353e88a
2 changed files with 4 additions and 0 deletions

View File

@@ -557,6 +557,9 @@ namespace SqlSugar
Check.Exception(SugarCompatible.IsFramework, "GaussDBNative only support .net core");
InstanceFactory.CustomDllName = "SqlSugar.GaussDBCore";
break;
case DbType.DuckDB:
InstanceFactory.CustomDllName = SugarCompatible.IsFramework ? throw new Exception("Only.NET CORE is supported") : "SqlSugar.DuckDBCore";
break;
default:
throw new Exception("ConnectionConfig.DbType is null");
}

View File

@@ -38,6 +38,7 @@ namespace SqlSugar
HANA,
DB2,
GaussDBNative,
DuckDB,
Custom =900
}
}