mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-09-19 18:22:23 +08:00
This commit is contained in:
@@ -109,6 +109,8 @@ namespace SqlSugar
|
|||||||
this.Connection = null;
|
this.Connection = null;
|
||||||
|
|
||||||
if (this.IsMasterSlaveSeparation)
|
if (this.IsMasterSlaveSeparation)
|
||||||
|
{
|
||||||
|
if (this.SlaveConnections != null)
|
||||||
{
|
{
|
||||||
foreach (var slaveConnection in this.SlaveConnections)
|
foreach (var slaveConnection in this.SlaveConnections)
|
||||||
{
|
{
|
||||||
@@ -119,6 +121,7 @@ namespace SqlSugar
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
public virtual void CheckConnection()
|
public virtual void CheckConnection()
|
||||||
{
|
{
|
||||||
if (this.Connection.State != ConnectionState.Open)
|
if (this.Connection.State != ConnectionState.Open)
|
||||||
|
Reference in New Issue
Block a user