mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-12-05 03:17:41 +08:00
Update db.AddConnection
This commit is contained in:
@@ -802,7 +802,7 @@ namespace SqlSugar
|
|||||||
{
|
{
|
||||||
Check.ArgumentNullException(connection, "AddConnection.connection can't be null");
|
Check.ArgumentNullException(connection, "AddConnection.connection can't be null");
|
||||||
InitTenant();
|
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 (db == null)
|
||||||
{
|
{
|
||||||
if (this._AllClients == null)
|
if (this._AllClients == null)
|
||||||
|
|||||||
Reference in New Issue
Block a user