Exemple #1
0
 public override async Task <bool> HasTablesAsync(CancellationToken cancellationToken = default(CancellationToken))
 => (int)(await _statementExecutor
          .ExecuteScalarAsync(_connection, _connection.DbTransaction, CreateHasTablesCommand(), cancellationToken)) != 0;
Exemple #2
0
 public virtual async Task <bool> ExistsAsync(CancellationToken cancellationToken = default(CancellationToken))
 => await _databaseCreator.ExistsAsync(cancellationToken) &&
 InterpretExistsResult(await _executor.ExecuteScalarAsync(_connection, ExistsSql, cancellationToken));