@@ -59,7 +59,7 @@ public static QueryResult<Queue<object[]>> Retrieve(this IDataReader reader, IEn
5959 /// <param name="others">The remaining ordinals to request from the reader for each record.</param>
6060 /// <returns>The QueryResult that contains all the results and the column mappings.</returns>
6161 public static QueryResult < Queue < object [ ] > > Retrieve ( this IDataReader reader , int n , params int [ ] others )
62- => Retrieve ( reader , new [ ] { n } . Concat ( others ) ) ;
62+ => Retrieve ( reader , Enumerable . Repeat ( n , 1 ) . Concat ( others ) ) ;
6363
6464 /// <summary>
6565 /// Iterates all records within the current result set using an IDataReader and returns the desired results.
@@ -84,7 +84,7 @@ public static QueryResult<Queue<object[]>> Retrieve(this IDataReader reader, IEn
8484 /// <param name="others">The remaining column names to request from the reader for each record.</param>
8585 /// <returns>The QueryResult that contains all the results and the column mappings.</returns>
8686 public static QueryResult < Queue < object [ ] > > Retrieve ( this IDataReader reader , string c , params string [ ] others )
87- => Retrieve ( reader , new [ ] { c } . Concat ( others ) ) ;
87+ => Retrieve ( reader , Enumerable . Repeat ( c , 1 ) . Concat ( others ) ) ;
8888
8989 /// <summary>
9090 /// Iterates all records within the first result set using an IDataReader and returns the results.
@@ -115,7 +115,7 @@ public static QueryResult<Queue<object[]>> Retrieve(this IDbCommand command, IEn
115115 /// <param name="others">The remaining ordinals to request from the reader for each record.</param>
116116 /// <returns>The QueryResult that contains all the results and the column mappings.</returns>
117117 public static QueryResult < Queue < object [ ] > > Retrieve ( this IDbCommand command , int n , params int [ ] others )
118- => ExecuteReader ( command , reader => Retrieve ( reader , new [ ] { n } . Concat ( others ) ) ) ;
118+ => ExecuteReader ( command , reader => Retrieve ( reader , Enumerable . Repeat ( n , 1 ) . Concat ( others ) ) ) ;
119119
120120 /// <summary>
121121 /// Iterates all records within the first result set using an IDataReader and returns the desired results as a list of Dictionaries containing only the specified column values.
@@ -136,7 +136,7 @@ public static QueryResult<Queue<object[]>> Retrieve(this IDbCommand command, IEn
136136 /// <param name="others">The remaining column names to request from the reader for each record.</param>
137137 /// <returns>The QueryResult that contains all the results and the column mappings.</returns>
138138 public static QueryResult < Queue < object [ ] > > Retrieve ( this IDbCommand command , string c , params string [ ] others )
139- => ExecuteReader ( command , reader => Retrieve ( reader , new [ ] { c } . Concat ( others ) ) ) ;
139+ => ExecuteReader ( command , reader => Retrieve ( reader , Enumerable . Repeat ( c , 1 ) . Concat ( others ) ) ) ;
140140
141141 /// <summary>
142142 /// Asynchronously enumerates all the remaining values of the current result set of a data reader.
@@ -224,7 +224,7 @@ public static Task<QueryResult<Queue<object[]>>> RetrieveAsync(this DbDataReader
224224 /// <param name="others">The remaining ordinals to request from the reader for each record.</param>
225225 /// <returns>The QueryResult that contains a buffer block of the results and the column mappings.</returns>
226226 public static Task < QueryResult < Queue < object [ ] > > > RetrieveAsync ( this DbDataReader reader , int n , params int [ ] others )
227- => RetrieveAsync ( reader , new [ ] { n } . Concat ( others ) ) ;
227+ => RetrieveAsync ( reader , Enumerable . Repeat ( n , 1 ) . Concat ( others ) ) ;
228228
229229 /// <summary>
230230 /// Asynchronously enumerates all the remaining values of the current result set of a data reader.
@@ -236,7 +236,7 @@ public static Task<QueryResult<Queue<object[]>>> RetrieveAsync(this DbDataReader
236236 /// <param name="others">The remaining ordinals to request from the reader for each record.</param>
237237 /// <returns>The QueryResult that contains a buffer block of the results and the column mappings.</returns>
238238 public static Task < QueryResult < Queue < object [ ] > > > RetrieveAsync ( this DbDataReader reader , CancellationToken token , int n , params int [ ] others )
239- => RetrieveAsync ( reader , new [ ] { n } . Concat ( others ) , token ) ;
239+ => RetrieveAsync ( reader , Enumerable . Repeat ( n , 1 ) . Concat ( others ) , token ) ;
240240
241241 /// <summary>
242242 /// Asynchronously enumerates all records within the current result set using an IDataReader and returns the desired results.
@@ -268,7 +268,7 @@ public static Task<QueryResult<Queue<object[]>>> RetrieveAsync(this DbDataReader
268268 /// <param name="others">The remaining column names to request from the reader for each record.</param>
269269 /// <returns>The QueryResult that contains all the results and the column mappings.</returns>
270270 public static Task < QueryResult < Queue < object [ ] > > > RetrieveAsync ( this DbDataReader reader , string c , params string [ ] others )
271- => RetrieveAsync ( reader , new [ ] { c } . Concat ( others ) ) ;
271+ => RetrieveAsync ( reader , Enumerable . Repeat ( c , 1 ) . Concat ( others ) ) ;
272272
273273 /// <summary>
274274 /// Asynchronously enumerates all records within the current result set using an IDataReader and returns the desired results.
@@ -280,7 +280,7 @@ public static Task<QueryResult<Queue<object[]>>> RetrieveAsync(this DbDataReader
280280 /// <param name="others">The remaining column names to request from the reader for each record.</param>
281281 /// <returns>The QueryResult that contains all the results and the column mappings.</returns>
282282 public static Task < QueryResult < Queue < object [ ] > > > RetrieveAsync ( this DbDataReader reader , CancellationToken token , string c , params string [ ] others )
283- => RetrieveAsync ( reader , new [ ] { c } . Concat ( others ) , false , token ) ;
283+ => RetrieveAsync ( reader , Enumerable . Repeat ( c , 1 ) . Concat ( others ) , false , token ) ;
284284
285285 /// <summary>
286286 /// Asynchronously enumerates all the remaining values of the current result set of a data reader.
@@ -317,7 +317,7 @@ public static Task<QueryResult<Queue<object[]>>> RetrieveAsync(this DbCommand co
317317 /// <param name="others">The remaining ordinals to request from the reader for each record.</param>
318318 /// <returns>The QueryResult that contains a buffer block of the results and the column mappings.</returns>
319319 public static Task < QueryResult < Queue < object [ ] > > > RetrieveAsync ( this DbCommand command , int n , params int [ ] others )
320- => RetrieveAsync ( command , new [ ] { n } . Concat ( others ) ) ;
320+ => RetrieveAsync ( command , Enumerable . Repeat ( n , 1 ) . Concat ( others ) ) ;
321321
322322 /// <summary>
323323 /// Asynchronously enumerates all the remaining values of the current result set of a data reader.
@@ -329,7 +329,7 @@ public static Task<QueryResult<Queue<object[]>>> RetrieveAsync(this DbCommand co
329329 /// <param name="others">The remaining ordinals to request from the reader for each record.</param>
330330 /// <returns>The QueryResult that contains a buffer block of the results and the column mappings.</returns>
331331 public static Task < QueryResult < Queue < object [ ] > > > RetrieveAsync ( this DbCommand command , CancellationToken token , int n , params int [ ] others )
332- => RetrieveAsync ( command , new [ ] { n } . Concat ( others ) , token ) ;
332+ => RetrieveAsync ( command , Enumerable . Repeat ( n , 1 ) . Concat ( others ) , token ) ;
333333
334334 /// <summary>
335335 /// Asynchronously enumerates all records within the current result set using an IDataReader and returns the desired results.
@@ -353,7 +353,7 @@ public static Task<QueryResult<Queue<object[]>>> RetrieveAsync(this DbCommand co
353353 /// <param name="others">The remaining column names to request from the reader for each record.</param>
354354 /// <returns>The QueryResult that contains all the results and the column mappings.</returns>
355355 public static Task < QueryResult < Queue < object [ ] > > > RetrieveAsync ( this DbCommand command , string c , params string [ ] others )
356- => RetrieveAsync ( command , new [ ] { c } . Concat ( others ) ) ;
356+ => RetrieveAsync ( command , Enumerable . Repeat ( c , 1 ) . Concat ( others ) ) ;
357357
358358 /// <summary>
359359 /// Asynchronously enumerates all records within the current result set using an IDataReader and returns the desired results.
@@ -365,7 +365,7 @@ public static Task<QueryResult<Queue<object[]>>> RetrieveAsync(this DbCommand co
365365 /// <param name="others">The remaining column names to request from the reader for each record.</param>
366366 /// <returns>The QueryResult that contains all the results and the column mappings.</returns>
367367 public static Task < QueryResult < Queue < object [ ] > > > RetrieveAsync ( this DbCommand command , CancellationToken token , string c , params string [ ] others )
368- => RetrieveAsync ( command , new [ ] { c } . Concat ( others ) , false , token ) ;
368+ => RetrieveAsync ( command , Enumerable . Repeat ( c , 1 ) . Concat ( others ) , false , token ) ;
369369
370370 }
371371}
0 commit comments