How do I commit transaction asynchronously in entity framework?
using (var transaction = this.db.Database.BeginTransaction())
{
this.db.DoSomething();
await this.db.SaveChangesAsync().ConfigureAwait(false);
// note .Commit isn't async but it involves network i/o
transaction.Commit();
}
I'd like to make .Commit asynchronous, but I don't see appropriate API in DbContextTransaction