Can I use DapperRepository and EntityRepository in the same transaction? #10624
Replies: 2 comments
-
By default, ABP doesn't support that officially. Also, I'm not sure how it can be possible. If it's possible, you should implement it by yourself. |
Beta Was this translation helpful? Give feedback.
-
Although it doesn't support officially, but Dapper and EF can be in same transaction, repo both gets context from UnitOfWorkDbContextProvider and the provider will provide same context in a UOW. so, it's possible to use dapper and EF in a transaction.
Sample: step 1. EF modifies an entity |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Can I use DapperRepository and EntityRepository in the same transaction?
eg:
because updatemany methord is too slow.
what should i do?
Beta Was this translation helpful? Give feedback.
All reactions