MapperDetailMoveTo Method |
Name | Description | |
---|---|---|
MoveTo(String) |
Move to the row corresponding to the specified RowKey.
(Inherited from MapperKernel.) | |
MoveTo(Int32) |
Move to the specified row number (1-based).
Note that RowCurrent events are NOT fired and data is NOT
moved through the mapper's Fields during the move. In general you should use
this method to position the mapper to the record immeditately PRIOR to the first record of
interest and then use MoveNext to iterate through one or more records of interest.
(Overrides MapperKernelMoveTo(Int32).)Remarks
Note that this will throw an InvalidMapperMovement exception if the mapper is
positioned beyond the specified record and is not BiDirectional.
Examples
For example, to implement a page size of 10 records and read data for the 2nd page, you would
first call mapper.MoveTo(10); to position to the 10th row (the last row of page 1) then
iteratively call mapper.MoveNext(); until you have read 10 records (11 through 20) or
until mapper.MoveNext();MoveNext() returns false indicating that there are no more records.
|