Read() Method
Syntax:
public bool Read()
Description:
Advances the reader to the next record (row) in the current result set. The default position of a data reader (when first created or right after moving to the next result set) is before the first record, so you must call Read before beginning to access data.
Parameters:
None
Return Value:
Type: System.Boolean
True if there are more rows; otherwise False.
Exceptions:
Exception | Condition |
---|---|
InvalidOperationException | The RdmDataReader is closed. |
Reference:
For more information, reference MSDN documentation for: System.Data.Common.DbDataReader.Read