Browse Source

Synchronization code

pull/32/head
sunkaixuan 2 years ago
parent
commit
1737eaca3e
  1. 1
      Src/Asp.Net/SqlSugar/Abstract/AdoProvider/AdoProvider.cs
  2. 4
      Src/Asp.Net/SqlSugar/Abstract/QueryableProvider/Entities/SubQueryToListDefaultT.cs

1
Src/Asp.Net/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)

4
Src/Asp.Net/SqlSugar/Abstract/QueryableProvider/Entities/SubQueryToListDefaultT.cs

@ -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; }
}
}

Loading…
Cancel
Save