protected override DbCommand CreateDbCommand()
        {
            var command = new FakeCypherDbCommand(this, _commandExecutor);

            _dbCommands.Add(command);

            return(command);
        }
Exemple #2
0
 public Task <DbDataReader> ExecuteReaderAsync(FakeCypherDbCommand command, CommandBehavior behavior, CancellationToken cancellationToken)
 => _executeReaderAsync(command, behavior, cancellationToken);
Exemple #3
0
 public Task <object> ExecuteScalarAsync(FakeCypherDbCommand command, CancellationToken cancellationToken)
 => _executeScalarAsync(command, cancellationToken);
Exemple #4
0
 public Task <int> ExecuteNonQueryAsync(FakeCypherDbCommand command, CancellationToken cancellationToken)
 => _executeNonQueryAsync(command, cancellationToken);
Exemple #5
0
 public virtual DbDataReader ExecuteReader(FakeCypherDbCommand command, CommandBehavior behavior)
 => _executeReader(command, behavior);
Exemple #6
0
 public virtual object ExecuteScalar(FakeCypherDbCommand command) => _executeScalar(command);
Exemple #7
0
 public virtual int ExecuteNonQuery(FakeCypherDbCommand command) => _executeNonQuery(command);