Ejemplo n.º 1
0
        public override async Task CreateAsync(CancellationToken cancellationToken = default(CancellationToken))
        {
            using (var masterConnection = _connection.CreateMasterConnection())
            {
                await _statementExecutor.ExecuteNonQueryAsync(masterConnection, CreateCreateOperations(), cancellationToken);

                ClearPool();
            }
        }
        public override async Task CreateAsync(CancellationToken cancellationToken = default(CancellationToken))
        {
            using (var masterConnection = _connection.CreateMasterConnection())
            {
                await _statementExecutor
                .ExecuteNonQueryAsync(masterConnection, null, CreateCreateOperations(), cancellationToken)
                .ConfigureAwait(continueOnCapturedContext: false);

                ClearPool();
            }
        }
Ejemplo n.º 3
0
        public override async Task CreateAsync(CancellationToken cancellationToken = default(CancellationToken))
        {
            using (var masterConnection = _connection.CreateMasterConnection())
            {
                await _statementExecutor
                .ExecuteNonQueryAsync(masterConnection, null, CreateCreateOperations(), cancellationToken)
                .WithCurrentCulture();

                ClearPool();
            }

            await ExistsAsync(retryOnNotExists : true, cancellationToken : cancellationToken).WithCurrentCulture();
        }
Ejemplo n.º 4
0
        public override async Task DeleteAsync(CancellationToken cancellationToken = default(CancellationToken))
        {
            ClearAllPools();

            using (var masterConnection = _connection.CreateMasterConnection())
            {
                await SqlStatementExecutor.ExecuteNonQueryAsync(masterConnection, CreateDropCommands(), cancellationToken);
            }
        }