12. Understanding .NET Data Provider Connectivity : .NET Data Provider Classes : IngresDataReader Class : IngresDataReader Class Public Methods
 
Share this page                  
IngresDataReader Class Public Methods
The public methods available to the IngresDataReader class are:
Method
Description
Close
Closes the IngresDataReader.
GetBoolean
Gets the column value as a Boolean.
GetByte
Gets the column value as an unsigned 8-bit Byte.
GetBytes
Gets the column value as a byte stream into a Byte array.
GetChar
Gets the column value as a Char.
GetChars
Gets the column value as a character stream into a Char array.
GetDataTypeName
Gets the column's data type name as known in Ingres.
GetDateTime
Gets the column value as a DateTime.
GetDecimal
Gets the column value as a Decimal.
GetDouble
Gets the column value as a double.
GetFieldType
Gets the column's .NET Type.
GetFloat
Gets the column value as a Float.
GetGuid
Gets the column value as a Guid.
GetInt16
Gets the column value as a signed 16-bit integer.
GetInt32
Gets the column value as a signed 32-bit integer.
GetInt64
Gets the column value as a signed 64-bit integer.
GetName
Gets the column's name using a specified ordinal.
GetOrdinal
Gets the column's ordinal using a specified name.
GetSchemaTable
Returns a DataTable that describes the resultset column metadata. If ExecuteReader( CommandBehavior.KeyInfo ) was called, additional information about primary key columns, unique columns, and base names is retrieved from the database catalog and included in the returned DataTable. For column information returned, see GetSchemaTable Columns Returned.
GetString
Gets the column value as a string.
GetTimeSpan
Gets the column value as a TimeSpan.
GetValue
Gets the column value in its native format.
GetValues
Gets all of the column values into an Object array.
IsDBNull
Returns true/false indicating whether the column value is null.
NextResult
Advances the data reader to the next result set if present.
Read
Advances the data reader to the next row in the result set.
Important!  There are no conversions performed by the GetXXX methods. If the data is not of the correct type, an InvalidCastException is thrown.
Always call IsDBNull on a column if there is any chance of it being null before attempting to call one of the GetXXX accessor to retrieve the data.