From 6e87109b3281c5c1e411626516babf795e2b9efe Mon Sep 17 00:00:00 2001 From: sunkaixuan <610262374@qq.com> Date: Fri, 12 Aug 2022 21:08:35 +0800 Subject: [PATCH] Update ClickHouse --- .../SqlSugar/Abstract/SugarProvider/SqlSugarAccessory.cs | 1 + Src/Asp.NetCore2/SqlSugar/Infrastructure/InstanceFactory.cs | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/Src/Asp.NetCore2/SqlSugar/Abstract/SugarProvider/SqlSugarAccessory.cs b/Src/Asp.NetCore2/SqlSugar/Abstract/SugarProvider/SqlSugarAccessory.cs index 68de833f5..0fce15abc 100644 --- a/Src/Asp.NetCore2/SqlSugar/Abstract/SugarProvider/SqlSugarAccessory.cs +++ b/Src/Asp.NetCore2/SqlSugar/Abstract/SugarProvider/SqlSugarAccessory.cs @@ -412,6 +412,7 @@ namespace SqlSugar break; case DbType.ClickHouse: Check.Exception(SugarCompatible.IsFramework, "ClickHouse only support .net core"); + InstanceFactory.CustomDllName = SugarCompatible.IsFramework ? "SqlSugar.ClickHouse" : "SqlSugar.ClickHouseCore"; break; default: throw new Exception("ConnectionConfig.DbType is null"); diff --git a/Src/Asp.NetCore2/SqlSugar/Infrastructure/InstanceFactory.cs b/Src/Asp.NetCore2/SqlSugar/Infrastructure/InstanceFactory.cs index 6fca59352..3a0255b7b 100644 --- a/Src/Asp.NetCore2/SqlSugar/Infrastructure/InstanceFactory.cs +++ b/Src/Asp.NetCore2/SqlSugar/Infrastructure/InstanceFactory.cs @@ -313,6 +313,10 @@ namespace SqlSugar { return "SqlSugar.Access.Access" + name; } + else if (type == "ClickHouse") + { + return "SqlSugar.ClickHouse.ClickHouse" + name; + } else if (type == "Custom") { return CustomNamespace + "."+CustomDbName + name;