Advantage .NET Data Provider
Sets the table position to BOF (beginning of file), which is prior to the first record.
public void GotoBOF();
This positions the reader prior to the first record in the record set. A call to AdsDataReader.Read after a call to GotoBOF will position the reader on the first record. This simulates the situation of a newly opened reader. It allows code such as the following to work as expected:
reader.GotoBOF();
while ( reader.Read() )
{
// do stuff
}
See Also