Browse Source

Master Slave Bug

pull/12/MERGE
sunkaixuan 7 years ago
parent
commit
37e3b5eddc
  1. 2
      Src/Asp.Net/SqlSugar/Abstract/AdoProvider/AdoProvider.cs

2
Src/Asp.Net/SqlSugar/Abstract/AdoProvider/AdoProvider.cs

@ -730,7 +730,7 @@ namespace SqlSugar
private void SetConnectionEnd(string sql)
{
if (this.IsMasterSlaveSeparation && IsRead(sql))
if (this.IsMasterSlaveSeparation && IsRead(sql)&&this.Transaction==null)
{
this.Connection = this.MasterConnection;
this.Context.CurrentConnectionConfig.ConnectionString = this.MasterConnection.ConnectionString;

Loading…
Cancel
Save