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