Method Skip
- Namespace
- Open.Database.Extensions
- Assembly
- Open.Database.Extensions.Core.dll
Skip<T>(IDbCommand, int, Func<IDataRecord, T>, CommandBehavior)
Iterates an IDataReader and skips the first number of results defined by the count.
public static List<T> Skip<T>(this IDbCommand command, int count, Func<IDataRecord, T> transform, CommandBehavior behavior = CommandBehavior.Default)
Parameters
commandIDbCommandThe IDbCommand to generate a reader from.
countintThe number of records to skip.
transformFunc<IDataRecord, T>The transform function to process each IDataRecord.
behaviorCommandBehaviorThe behavior to use with the data reader.
Returns
- List<T>
The results from the transform after the skip count.
Type Parameters
TThe return type of the transform function.