Synchronization code

This commit is contained in:
sunkaixuan
2023-04-04 22:15:53 +08:00
parent 1737eaca3e
commit 717d95ab34
2 changed files with 2 additions and 0 deletions

View File

@@ -935,6 +935,7 @@ namespace SqlSugar
var oldValue = this.Context.Ado.IsDisableMasterSlaveSeparation;
this.Context.Ado.IsDisableMasterSlaveSeparation = true;
var result = await this.Context.Ado.SqlQueryAsync<T>(sql, parameters);
this.Context.Ado.IsDisableMasterSlaveSeparation = oldValue;
return result;
}
public virtual List<T> SqlQuery<T>(string sql, List<SugarParameter> parameters)