SqlSugarScope MasterSlave BUG

This commit is contained in:
sunkaixuna 2021-12-08 20:21:58 +08:00
parent 8a4b71e12a
commit 1e412877b6

View File

@ -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)