Browse Source

Optimizing error message

pull/12/MERGE
sunkaixuan 7 years ago
parent
commit
69d1f2ca73
  1. 1
      Src/Asp.Net/SqlSugar/Abstract/DbMaintenanceProvider/Methods.cs

1
Src/Asp.Net/SqlSugar/Abstract/DbMaintenanceProvider/Methods.cs

@ -111,6 +111,7 @@ namespace SqlSugar
{ {
var oldIsEnableLog = this.Context.Ado.IsEnableLogEvent; var oldIsEnableLog = this.Context.Ado.IsEnableLogEvent;
this.Context.Ado.IsEnableLogEvent = false; this.Context.Ado.IsEnableLogEvent = false;
this.Context.Ado.CheckConnection();
this.Context.Ado.ExecuteCommand(sql); this.Context.Ado.ExecuteCommand(sql);
this.Context.Ado.IsEnableLogEvent = oldIsEnableLog; this.Context.Ado.IsEnableLogEvent = oldIsEnableLog;
return true; return true;

Loading…
Cancel
Save