mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-09-19 10:08:19 +08:00
This commit is contained in:
@@ -110,11 +110,14 @@ namespace SqlSugar
|
||||
|
||||
if (this.IsMasterSlaveSeparation)
|
||||
{
|
||||
foreach (var slaveConnection in this.SlaveConnections)
|
||||
if (this.SlaveConnections != null)
|
||||
{
|
||||
if (slaveConnection != null && slaveConnection.State == ConnectionState.Open)
|
||||
foreach (var slaveConnection in this.SlaveConnections)
|
||||
{
|
||||
slaveConnection.Dispose();
|
||||
if (slaveConnection != null && slaveConnection.State == ConnectionState.Open)
|
||||
{
|
||||
slaveConnection.Dispose();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user