Пример #1
0
 public async Task <IEnumerable <object> > QueryAsync(SqlStatement statement)
 {
     return(await _dbConnection
            .QueryAsync(statement.EffectiveType, statement.Sql, statement.GetDynamicParameters())
            .ConfigureAwait(false));
 }
Пример #2
0
 public async Task <object> QueryFirstOrDefaultAsync(SqlStatement statement)
 {
     return(await _dbConnection.QueryFirstOrDefaultAsync(statement.EffectiveType, statement.Sql,
                                                         statement.GetDynamicParameters()).ConfigureAwait(false));
 }
Пример #3
0
 public async Task <int> ExecuteAsync(SqlStatement statement)
 {
     return(await _dbConnection.ExecuteAsync(statement.Sql, statement.GetDynamicParameters())
            .ConfigureAwait(false));
 }