Npgsql API Documentation

NpgsqlDataReader Methods

[This is preliminary documentation and subject to change.]

The methods of the NpgsqlDataReader class are listed below. For a complete list of NpgsqlDataReader class members, see the NpgsqlDataReader Members topic.

Public Instance Methods

Close Closes the data reader object.
Dispose Releases the resources used by the NpgsqlCommand.
Equals (inherited from Object)Determines whether the specified Object is equal to the current Object.
GetBoolean Gets the value of a column converted to a Boolean.
GetByte Gets the value of a column converted to a Byte. Not implemented.
GetBytes Gets raw data from a column.
GetChar Gets the value of a column converted to a Char. Not implemented.
GetChars Gets raw data from a column.
GetData Not implemented.
GetDataTypeName Return the data type name of the column at index .
GetDataTypeOID Return the data type OID of the column at index .
GetDateTime Gets the value of a column converted to a DateTime.
GetDecimal Gets the value of a column converted to Decimal.
GetDouble Gets the value of a column converted to Double.
GetFieldDbType Return the data DbType of the column at index .
GetFieldNpgsqlDbType Return the data NpgsqlDbType of the column at index .
GetFieldType Return the data type of the column at index .
GetFloat Gets the value of a column converted to Single.
GetGuid Gets the value of a column converted to a Guid. Not implemented.
GetHashCode (inherited from Object)Serves as a hash function for a particular type, suitable for use in hashing algorithms and data structures like a hash table.
GetInt16 Gets the value of a column converted to Int16.
GetInt32 Gets the value of a column converted to Int32.
GetInt64 Gets the value of a column converted to Int64.
GetName Return the column name of the column at index .
GetOrdinal Return the column name of the column named .
GetSchemaTable Returns a System.Data.DataTable that describes the column metadata of the DataReader.
GetString Gets the value of a column converted to a String.
GetType (inherited from Object)Gets the Type of the current instance.
GetValue Return the value of the column at index .
GetValues Copy values from each column in the current row into .
IsDBNull Report whether the value in a column is DBNull.
NextResult Advances the data reader to the next result, when multiple result sets were returned by the PostgreSQL backend.
Read Advances the data reader to the next row.
ToString (inherited from Object)Returns a String that represents the current Object.

See Also

NpgsqlDataReader Class | Npgsql Namespace