From c233c1cc43527623388a5dff96a6d12174eff378 Mon Sep 17 00:00:00 2001 From: sunkaixuan <610262374@qq.com> Date: Wed, 19 Jul 2017 00:53:06 +0800 Subject: [PATCH] - --- Src/Asp.Net/SqlSugar/Abstract/DbMaintenanceProvider/Methods.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Src/Asp.Net/SqlSugar/Abstract/DbMaintenanceProvider/Methods.cs b/Src/Asp.Net/SqlSugar/Abstract/DbMaintenanceProvider/Methods.cs index e89744d8b..a3b83628a 100644 --- a/Src/Asp.Net/SqlSugar/Abstract/DbMaintenanceProvider/Methods.cs +++ b/Src/Asp.Net/SqlSugar/Abstract/DbMaintenanceProvider/Methods.cs @@ -112,11 +112,11 @@ namespace SqlSugar public virtual bool IsAnySystemTablePermissions() { string sql = this.CheckSystemTablePermissionsSql; + this.Context.Ado.CheckConnection(); try { var oldIsEnableLog = this.Context.Ado.IsEnableLogEvent; this.Context.Ado.IsEnableLogEvent = false; - this.Context.Ado.CheckConnection(); this.Context.Ado.ExecuteCommand(sql); this.Context.Ado.IsEnableLogEvent = oldIsEnableLog; return true;