mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-11-07 18:04:55 +08:00
SqlSugarScope MasterSlave BUG
This commit is contained in:
@@ -1388,6 +1388,11 @@ namespace SqlSugar
|
|||||||
this.SlaveConnections.Add(this.Connection);
|
this.SlaveConnections.Add(this.Connection);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
else if (this.Transaction == null && this.IsMasterSlaveSeparation&& this.MasterConnection == null)
|
||||||
|
{
|
||||||
|
this.MasterConnection = this.Connection;
|
||||||
|
this.MasterConnectionString = this.MasterConnection.ConnectionString;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private bool EqualsConnectionString(string connectionString1, string connectionString2)
|
private bool EqualsConnectionString(string connectionString1, string connectionString2)
|
||||||
|
|||||||
Reference in New Issue
Block a user