Browse Source

Update db.MasterSqlQuery

pull/32/head
sunkaixuan 2 years ago
parent
commit
9a4e2b5899
  1. 1
      Src/Asp.NetCore2/SqlSugar/Abstract/AdoProvider/AdoProvider.cs

1
Src/Asp.NetCore2/SqlSugar/Abstract/AdoProvider/AdoProvider.cs

@ -927,6 +927,7 @@ namespace SqlSugar
var oldValue = this.Context.Ado.IsDisableMasterSlaveSeparation;
this.Context.Ado.IsDisableMasterSlaveSeparation = true;
var result = this.Context.Ado.SqlQuery<T>(sql, parameters);
this.Context.Ado.IsDisableMasterSlaveSeparation = oldValue;
return result;
}
public async Task<List<T>> MasterSqlQueryAasync<T>(string sql, object parameters = null)

Loading…
Cancel
Save