mirror of
https://github.com/nsnail/FreeSql.git
synced 2025-06-19 04:18:16 +08:00
- 增加 DuckDB 数据库支持;
This commit is contained in:
@ -99,9 +99,7 @@ namespace FreeSql
|
||||
catch (Exception ex)
|
||||
{
|
||||
_fsql?.Aop.TraceAfterHandler?.Invoke(this, new Aop.TraceAfterEventArgs(_tranBefore, "失败", ex));
|
||||
#pragma warning disable CA2200 // 再次引发以保留堆栈详细信息
|
||||
throw ex;
|
||||
#pragma warning restore CA2200 // 再次引发以保留堆栈详细信息
|
||||
throw;
|
||||
}
|
||||
return _tran;
|
||||
}
|
||||
@ -125,9 +123,7 @@ namespace FreeSql
|
||||
{
|
||||
if (isCommited == false)
|
||||
_fsql?.Aop.TraceAfterHandler?.Invoke(this, new Aop.TraceAfterEventArgs(_tranBefore, "提交失败", ex));
|
||||
#pragma warning disable CA2200 // 再次引发以保留堆栈详细信息
|
||||
throw ex;
|
||||
#pragma warning restore CA2200 // 再次引发以保留堆栈详细信息
|
||||
throw;
|
||||
}
|
||||
finally
|
||||
{
|
||||
@ -151,9 +147,7 @@ namespace FreeSql
|
||||
{
|
||||
if (isRollbacked == false)
|
||||
_fsql?.Aop.TraceAfterHandler?.Invoke(this, new Aop.TraceAfterEventArgs(_tranBefore, "回滚失败", ex));
|
||||
#pragma warning disable CA2200 // 再次引发以保留堆栈详细信息
|
||||
throw ex;
|
||||
#pragma warning restore CA2200 // 再次引发以保留堆栈详细信息
|
||||
throw;
|
||||
}
|
||||
finally
|
||||
{
|
||||
|
Reference in New Issue
Block a user