From e571dc240f9cdde05e1271d74361bba3a75e4e00 Mon Sep 17 00:00:00 2001 From: sunkaixuan <610262374@qq.com> Date: Tue, 30 Apr 2019 11:23:34 +0800 Subject: [PATCH] SP BUG --- Src/Asp.Net/SqlSugar/Abstract/AdoProvider/AdoProvider.cs | 5 +++++ 1 file changed, 5 insertions(+) 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;