diff --git a/Src/Asp.Net/SqlSugar/Abstract/AdoProvider/AdoProvider.cs b/Src/Asp.Net/SqlSugar/Abstract/AdoProvider/AdoProvider.cs index f75b1ff56..ad7498c23 100644 --- a/Src/Asp.Net/SqlSugar/Abstract/AdoProvider/AdoProvider.cs +++ b/Src/Asp.Net/SqlSugar/Abstract/AdoProvider/AdoProvider.cs @@ -312,6 +312,7 @@ namespace SqlSugar } catch (Exception ex) { + CommandType = CommandType.Text; if (ErrorEvent != null) ExecuteErrorEvent(sql, parameters, ex); throw ex; @@ -346,6 +347,7 @@ namespace SqlSugar } catch (Exception ex) { + CommandType = CommandType.Text; if (ErrorEvent != null) ExecuteErrorEvent(sql, parameters, ex); throw ex; @@ -375,6 +377,7 @@ namespace SqlSugar } catch (Exception ex) { + CommandType = CommandType.Text; if (ErrorEvent != null) ExecuteErrorEvent(sql, parameters, ex); throw ex; @@ -403,6 +406,7 @@ namespace SqlSugar } catch (Exception ex) { + CommandType = CommandType.Text; if (ErrorEvent != null) ExecuteErrorEvent(sql, parameters, ex); throw ex; @@ -434,6 +438,7 @@ namespace SqlSugar } catch (Exception ex) { + CommandType = CommandType.Text; if (ErrorEvent != null) ExecuteErrorEvent(sql,parameters,ex); throw ex;