0
sonnn18 created
- ABP Framework version: v4.3.1
- UI type: Angular
- DB provider: EF Core
- Tiered (MVC) or Identity Server Separated (Angular): yes
- Exception message and stack trace: Execute requires the command to have a transaction object when the connection assigned to the command is in a pending local transaction. The Transaction property of the command has not been initialized.
- SqliteConnection does not support nested transactions.
- Execute requires the command to have a transaction object when the connection assigned to the command is in a pending local transaction. The Transaction property of the command has not been initialized.
- Steps to reproduce the issue: When run all of the unit test cases, some of the unit tests failed because of those exception above. The transact ion behavior already disabled.
3 Answer(s)
-
0
hi
Please try that.
https://support.abp.io/QA/Questions/2176/Regarding-Unit-test-issue#answer-a0b36b39-5bdd-3259-a49e-3a005ca3118c
-
0
Hi, The above thread is resolved the nested transaction issue, However, I still receive a exception below:
- The transaction object is not associated with the same connection object as this command
The issue above only happened when I run all unit test cases when running a single test case then it passed.
-
0
hi
The transaction object is not associated with the same connection object as this command
Please share the error stack.