Synchronization code

This commit is contained in:
sunkaixuan
2023-04-04 22:01:42 +08:00
parent 76b7c6627f
commit 1737eaca3e
2 changed files with 3 additions and 2 deletions

View File

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

View File

@@ -4,9 +4,9 @@ using System.Text;
namespace SqlSugar
{
internal class SubQueryToListDefaultT
internal class SubQueryToListDefaultT
{
public int id { get; set; }
public object id { get; set; }
public object sugarIndex { get; set; }
}
}