@@ -187,13 +187,29 @@ public Task<List<T>> TakeAsync<T>(Func<IDataRecord, T> transform, int count)
187187 . ContinueWith ( t => results ) ;
188188 }
189189
190- /// <summary>
191- /// Asynchronously iterates all records within the current result set using an IDataReader and returns the desired results.
192- /// </summary>
193- /// <param name="n">The first ordinal to include in the request to the reader for each record.</param>
194- /// <param name="others">The remaining ordinals to request from the reader for each record.</param>
195- /// <returns>The QueryResult that contains all the results and the column mappings.</returns>
196- public Task < QueryResult < Queue < object [ ] > > > RetrieveAsync ( int n , params int [ ] others )
190+
191+ /// <summary>
192+ /// Reads the first column from every record and returns the results as a list.
193+ /// </summary>
194+ /// <returns>The list of transformed records.</returns>
195+ public Task < List < object > > FirstOrdinalResultsAsync ( )
196+ => ToListAsync ( r => r . GetValue ( 0 ) ) ;
197+
198+
199+ /// <summary>
200+ /// Reads the first column from every record.
201+ /// </summary>
202+ /// <returns>The enumerable of casted values.</returns>
203+ public Task < IEnumerable < T0 > > FirstOrdinalResultsAsync < T0 > ( )
204+ => ExecuteAsync ( command => command . FirstOrdinalResultsAsync < T0 > ( ) ) ;
205+
206+ /// <summary>
207+ /// Asynchronously iterates all records within the current result set using an IDataReader and returns the desired results.
208+ /// </summary>
209+ /// <param name="n">The first ordinal to include in the request to the reader for each record.</param>
210+ /// <param name="others">The remaining ordinals to request from the reader for each record.</param>
211+ /// <returns>The QueryResult that contains all the results and the column mappings.</returns>
212+ public Task < QueryResult < Queue < object [ ] > > > RetrieveAsync ( int n , params int [ ] others )
197213 => RetrieveAsync ( new int [ 1 ] { n } . Concat ( others ) ) ;
198214
199215 /// <summary>
0 commit comments