-
Couldn't load subscription status.
- Fork 3.3k
Description
@divega opened this to CoreFX a while ago: https://github.com/dotnet/corefx/issues/10975 but it doesn't look like there has been any movement.
Our ADO.NET provider, MySqlConnector has BeginTransactionAsync, CommitAsync, and RollbackAsync
We like to use them in Pomelo.EntityFrameworkCore.MySql to avoid running Sync-Over-Async I/O and cut down on thread pool lockups.
EF does not lend itself well to supporting these Async methods. We have to override every single method that begins, commits, or rolls back a transaction in our provider.
I think that EF should add a class that allows for the provider to define whether or not it supports Async transaction APIs, and use those instead of the Sync ones if it does.