✅ EF core transactions in PostgreSQL
I have a custom extension method for running operations on DbContext.
One is for running operations in transactions with a specific isolation level, and the second one is for retry logic.
The problem I just spotted is that isolation doesn't work properly, despite having enough retries and time to process transactions.
I have an entity called
And here is my job for testing:
I expect the amount to be 0 after all the transactions have been run. But in fact
My implementation of
One is for running operations in transactions with a specific isolation level, and the second one is for retry logic.
The problem I just spotted is that isolation doesn't work properly, despite having enough retries and time to process transactions.
I have an entity called
WalletBalance that contains a property Amount.And here is my job for testing:
I expect the amount to be 0 after all the transactions have been run. But in fact
Amount has random numbers after each run of the job.My implementation of
ExecuteInCustomStrategyAsync and ExecuteInTransactionAsync below