diff --git a/Src/Asp.Net/SqlSugar/Abstract/AdoProvider/AdoProvider.cs b/Src/Asp.Net/SqlSugar/Abstract/AdoProvider/AdoProvider.cs index 12d0dfc15..8cfcb5a24 100644 --- a/Src/Asp.Net/SqlSugar/Abstract/AdoProvider/AdoProvider.cs +++ b/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(sql, parameters); + this.Context.Ado.IsDisableMasterSlaveSeparation = oldValue; return result; } public async Task> MasterSqlQueryAasync(string sql, object parameters = null) diff --git a/Src/Asp.Net/SqlSugar/Abstract/QueryableProvider/Entities/SubQueryToListDefaultT.cs b/Src/Asp.Net/SqlSugar/Abstract/QueryableProvider/Entities/SubQueryToListDefaultT.cs index 16b357086..d73e98907 100644 --- a/Src/Asp.Net/SqlSugar/Abstract/QueryableProvider/Entities/SubQueryToListDefaultT.cs +++ b/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; } } }