Browse Source

SP BUG

pull/12/MERGE
sunkaixuan 6 years ago
parent
commit
e571dc240f
  1. 5
      Src/Asp.Net/SqlSugar/Abstract/AdoProvider/AdoProvider.cs

5
Src/Asp.Net/SqlSugar/Abstract/AdoProvider/AdoProvider.cs

@ -312,6 +312,7 @@ namespace SqlSugar
} }
catch (Exception ex) catch (Exception ex)
{ {
CommandType = CommandType.Text;
if (ErrorEvent != null) if (ErrorEvent != null)
ExecuteErrorEvent(sql, parameters, ex); ExecuteErrorEvent(sql, parameters, ex);
throw ex; throw ex;
@ -346,6 +347,7 @@ namespace SqlSugar
} }
catch (Exception ex) catch (Exception ex)
{ {
CommandType = CommandType.Text;
if (ErrorEvent != null) if (ErrorEvent != null)
ExecuteErrorEvent(sql, parameters, ex); ExecuteErrorEvent(sql, parameters, ex);
throw ex; throw ex;
@ -375,6 +377,7 @@ namespace SqlSugar
} }
catch (Exception ex) catch (Exception ex)
{ {
CommandType = CommandType.Text;
if (ErrorEvent != null) if (ErrorEvent != null)
ExecuteErrorEvent(sql, parameters, ex); ExecuteErrorEvent(sql, parameters, ex);
throw ex; throw ex;
@ -403,6 +406,7 @@ namespace SqlSugar
} }
catch (Exception ex) catch (Exception ex)
{ {
CommandType = CommandType.Text;
if (ErrorEvent != null) if (ErrorEvent != null)
ExecuteErrorEvent(sql, parameters, ex); ExecuteErrorEvent(sql, parameters, ex);
throw ex; throw ex;
@ -434,6 +438,7 @@ namespace SqlSugar
} }
catch (Exception ex) catch (Exception ex)
{ {
CommandType = CommandType.Text;
if (ErrorEvent != null) if (ErrorEvent != null)
ExecuteErrorEvent(sql,parameters,ex); ExecuteErrorEvent(sql,parameters,ex);
throw ex; throw ex;

Loading…
Cancel
Save