This commit is contained in:
sunkaixuan 2019-04-30 11:23:34 +08:00
parent 6952c623c2
commit e571dc240f

View File

@ -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;