//=== public static async Task <IDataReader> ExecuteReaderAsync(this AnyDbConnection cnn, Select query, IDbTransaction transaction = null, int?commandTimeout = default(int?)) { string selectSql = GetSelectSql(cnn, query); if (!commandTimeout.HasValue) { commandTimeout = cnn.DefaultCommandTimeout; } DynamicParameters parameters = GetParameters(query.Query.CommandParams); return(await SqlMapper.ExecuteReaderAsync((IDbConnection)cnn, selectSql, (object)parameters, transaction, commandTimeout, (CommandType?)CommandType.Text)); }
public static Task <IDataReader> ExecuteReaderAsync(this IDbConnection cnn, string sql, object param = null, IDbTransaction transaction = null, int?commandTimeout = null, CommandType?commandType = null) { TRACE(sql); return(SqlMapper.ExecuteReaderAsync(cnn, sql, param, transaction, commandTimeout, commandType)); }