mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-12-05 03:17:41 +08:00
Update db.MasterSqlQuery
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user