Closed MikeAlhayek closed 10 months ago
Unit tests are failing since adding Rollabck in the DbGenerator, only on Sql, maybe the connection is already disposing the transaction. We need to understand what is happening. I am not sure we should just remove it since it's working for other databases. But that's a safety net.
Are you getting lazy, or just bored?
Are you getting lazy, or just bored?
I wish I was board and have nothing else better to do.
@sebastienros I think all the issues are now fixed.
CommitOrRollbackTransactionAsync
logic, await using var session = ...
works as expected and all tests now await and pass.DbBlockIdGenerator
, I added the RollbackAsync()
call you requested and it now worked. To get that to work, for some reason I had to set throwOnError
to true when initializing SchemaBuilder
instance.BeginTransaction
calls to BegingTransactonAsync
Now, everything support async which is great! Let me know if you see anything else or if you good with merging this one.
Fix #509
Note, there was a bug in the dispose logic of the Session class. The method
CommitOrRollbackTransactionAsync
has slightly different logic thanCommitOrRollbackTransaction
. I believe the logic inCommitOrRollbackTransaction
is better and used.