public async Task <IUnitOfWork> CreateTransactional() { Log.Debug("Provider is about to request a new connection"); var connection = await builder.CreateConnectionAsync().ConfigureAwait(false); connection.Open(); return(new UnitOfWork(connection)); }
protected async Task <IDbConnection> CreateConnectionAsync() { var connection = await connectionBuilder.CreateConnectionAsync(); connection.Open(); return(connection); }