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

            _dbCommands.Add(command);

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