mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-04-24 18:04:52 +08:00
SqlSugarScope MasterSlave BUG
This commit is contained in:
parent
8a4b71e12a
commit
1e412877b6
@ -1388,6 +1388,11 @@ namespace SqlSugar
|
||||
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)
|
||||
|
Loading…
Reference in New Issue
Block a user