From 60363db4763d693923be8e1f6df9c9060b33d7c1 Mon Sep 17 00:00:00 2001 From: sunkaixuan <610262374@qq.com> Date: Thu, 22 Dec 2022 12:32:00 +0800 Subject: [PATCH] Synchronization code --- Src/Asp.Net/SqlSugar/SqlSugarClient.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Src/Asp.Net/SqlSugar/SqlSugarClient.cs b/Src/Asp.Net/SqlSugar/SqlSugarClient.cs index e9ed861e8..d03dd72fa 100644 --- a/Src/Asp.Net/SqlSugar/SqlSugarClient.cs +++ b/Src/Asp.Net/SqlSugar/SqlSugarClient.cs @@ -802,7 +802,7 @@ namespace SqlSugar { Check.ArgumentNullException(connection, "AddConnection.connection can't be null"); InitTenant(); - var db = this._AllClients.FirstOrDefault(it => it.ConnectionConfig.ConfigId == connection.ConfigId); + var db = this._AllClients.FirstOrDefault(it => ((object)it.ConnectionConfig.ConfigId).ObjToString() == ((object)connection.ConfigId).ObjToString()); if (db == null) { if (this._AllClients == null)