We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Fact] public void Trans() { g.oracle.Transaction(()=> { g.oracle.Transaction(() => { g.oracle.Insert(new xxx()).ExecuteAffrows(); }); throw new Exception("异常"); }); }
使用FreeSql的Transaction事务做嵌套时,当内层事务提交时,整个事务就被提交了,当嵌套外层的事务发生异常,事务也已经无法回滚,Ado在BeginTransaction开启事务时判断了同线程是否已开启事务,已开启事务的会使用同一事务,但是当CommitTransaction事务提交时,没有对外层是否还有嵌套事务做判断,直接将当前事务提交了。 期望:只有最外层事务提交时,整个事务才提交
The text was updated successfully, but these errors were encountered:
- 修复 线程事务嵌套事务的 bug;#502
32353bb
v2.0.0-preview1026 #502 #500
b86676d
v2.0.0 #278 #511 #505 #537 #548 #560 #519 #500 #536 #502 #521
f179943
No branches or pull requests
使用FreeSql的Transaction事务做嵌套时,当内层事务提交时,整个事务就被提交了,当嵌套外层的事务发生异常,事务也已经无法回滚,Ado在BeginTransaction开启事务时判断了同线程是否已开启事务,已开启事务的会使用同一事务,但是当CommitTransaction事务提交时,没有对外层是否还有嵌套事务做判断,直接将当前事务提交了。
期望:只有最外层事务提交时,整个事务才提交
The text was updated successfully, but these errors were encountered: