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));
        }
Exemplo n.º 2
0
        protected async Task <IDbConnection> CreateConnectionAsync()
        {
            var connection = await connectionBuilder.CreateConnectionAsync();

            connection.Open();
            return(connection);
        }