Optimization exception

This commit is contained in:
sunkaixuan 2022-09-10 13:46:13 +08:00
parent 096c258614
commit 7ba6b89119

View File

@ -433,7 +433,7 @@ namespace SqlSugar
CommandType = CommandType.Text;
if (ErrorEvent != null)
ExecuteErrorEvent(sql, parameters, ex);
throw ex;
throw;
}
}
public virtual DataSet GetDataSetAll(string sql, params SugarParameter[] parameters)
@ -466,7 +466,7 @@ namespace SqlSugar
CommandType = CommandType.Text;
if (ErrorEvent != null)
ExecuteErrorEvent(sql, parameters, ex);
throw ex;
throw;
}
finally
{
@ -502,7 +502,7 @@ namespace SqlSugar
CommandType = CommandType.Text;
if (ErrorEvent != null)
ExecuteErrorEvent(sql, parameters, ex);
throw ex;
throw;
}
finally
{
@ -543,7 +543,7 @@ namespace SqlSugar
CommandType = CommandType.Text;
if (ErrorEvent != null)
ExecuteErrorEvent(sql, parameters, ex);
throw ex;
throw;
}
finally
{
@ -588,7 +588,7 @@ namespace SqlSugar
CommandType = CommandType.Text;
if (ErrorEvent != null)
ExecuteErrorEvent(sql, parameters, ex);
throw ex;
throw;
}
}
public virtual async Task<object> GetScalarAsync(string sql, params SugarParameter[] parameters)
@ -624,7 +624,7 @@ namespace SqlSugar
CommandType = CommandType.Text;
if (ErrorEvent != null)
ExecuteErrorEvent(sql, parameters, ex);
throw ex;
throw;
}
finally
{