DataReaderExtensions DataReaderExtensions DataReaderExtensions DataReaderExtensions Class

Definition

Provides extension methods for DbDataReader.

public ref class DataReaderExtensions abstract sealed
public static class DataReaderExtensions
type DataReaderExtensions = class
Public Module DataReaderExtensions
Inheritance
DataReaderExtensionsDataReaderExtensionsDataReaderExtensionsDataReaderExtensions

Methods

GetBoolean(DbDataReader, String) GetBoolean(DbDataReader, String) GetBoolean(DbDataReader, String) GetBoolean(DbDataReader, String)

Gets the value of the specified column as a Boolean.

GetByte(DbDataReader, String) GetByte(DbDataReader, String) GetByte(DbDataReader, String) GetByte(DbDataReader, String)

Gets the value of the specified column as a byte.

GetBytes(DbDataReader, String, Int64, Byte[], Int32, Int32) GetBytes(DbDataReader, String, Int64, Byte[], Int32, Int32) GetBytes(DbDataReader, String, Int64, Byte[], Int32, Int32) GetBytes(DbDataReader, String, Int64, Byte[], Int32, Int32)

Reads a specified number of bytes from the specified column starting at a specified index and writes them to a buffer starting at a specified position in the buffer.

GetChar(DbDataReader, String) GetChar(DbDataReader, String) GetChar(DbDataReader, String) GetChar(DbDataReader, String)

Gets the value of the specified column as a single character.

GetChars(DbDataReader, String, Int64, Char[], Int32, Int32) GetChars(DbDataReader, String, Int64, Char[], Int32, Int32) GetChars(DbDataReader, String, Int64, Char[], Int32, Int32) GetChars(DbDataReader, String, Int64, Char[], Int32, Int32)

Reads a specified number of characters from a specified column starting at a specified index, and writes them to a buffer starting at a specified position.

GetData(DbDataReader, String) GetData(DbDataReader, String) GetData(DbDataReader, String) GetData(DbDataReader, String)

Returns a nested data reader for the requested column.

GetDataTypeName(DbDataReader, String) GetDataTypeName(DbDataReader, String) GetDataTypeName(DbDataReader, String) GetDataTypeName(DbDataReader, String)

Gets name of the data type of the specified column.

GetDateTime(DbDataReader, String) GetDateTime(DbDataReader, String) GetDateTime(DbDataReader, String) GetDateTime(DbDataReader, String)

Gets the value of the specified column as a DateTime object.

GetDecimal(DbDataReader, String) GetDecimal(DbDataReader, String) GetDecimal(DbDataReader, String) GetDecimal(DbDataReader, String)

Gets the value of the specified column as a Decimal.

GetDouble(DbDataReader, String) GetDouble(DbDataReader, String) GetDouble(DbDataReader, String) GetDouble(DbDataReader, String)

Gets the value of the specified column as a double-precision floating point number.

GetFieldType(DbDataReader, String) GetFieldType(DbDataReader, String) GetFieldType(DbDataReader, String) GetFieldType(DbDataReader, String)

Gets the data type of the specified column.

GetFieldValue<T>(DbDataReader, String) GetFieldValue<T>(DbDataReader, String) GetFieldValue<T>(DbDataReader, String) GetFieldValue<T>(DbDataReader, String)

Gets the value of the specified column as the requested type.

GetFieldValueAsync<T>(DbDataReader, String, CancellationToken) GetFieldValueAsync<T>(DbDataReader, String, CancellationToken) GetFieldValueAsync<T>(DbDataReader, String, CancellationToken) GetFieldValueAsync<T>(DbDataReader, String, CancellationToken)

Asynchronously gets the value of the specified column as the requested type.

GetFloat(DbDataReader, String) GetFloat(DbDataReader, String) GetFloat(DbDataReader, String) GetFloat(DbDataReader, String)

Gets the value of the specified column as a single-precision floating point number.

GetGuid(DbDataReader, String) GetGuid(DbDataReader, String) GetGuid(DbDataReader, String) GetGuid(DbDataReader, String)

Gets the value of the specified column as a globally unique identifier (GUID).

GetInt16(DbDataReader, String) GetInt16(DbDataReader, String) GetInt16(DbDataReader, String) GetInt16(DbDataReader, String)

Gets the value of the specified column as a 16-bit signed integer.

GetInt32(DbDataReader, String) GetInt32(DbDataReader, String) GetInt32(DbDataReader, String) GetInt32(DbDataReader, String)

Gets the value of the specified column as a 32-bit signed integer.

GetInt64(DbDataReader, String) GetInt64(DbDataReader, String) GetInt64(DbDataReader, String) GetInt64(DbDataReader, String)

Gets the value of the specified column as a 64-bit signed integer.

GetProviderSpecificFieldType(DbDataReader, String) GetProviderSpecificFieldType(DbDataReader, String) GetProviderSpecificFieldType(DbDataReader, String) GetProviderSpecificFieldType(DbDataReader, String)

Gets the provider-specific type of the specified column.

GetProviderSpecificValue(DbDataReader, String) GetProviderSpecificValue(DbDataReader, String) GetProviderSpecificValue(DbDataReader, String) GetProviderSpecificValue(DbDataReader, String)

Gets the value of the specified column as an instance of a provider-specific type.

GetStream(DbDataReader, String) GetStream(DbDataReader, String) GetStream(DbDataReader, String) GetStream(DbDataReader, String)

Gets a stream to retrieve data from the specified column.

GetString(DbDataReader, String) GetString(DbDataReader, String) GetString(DbDataReader, String) GetString(DbDataReader, String)

Gets the value of the specified column as an instance of String.

GetTextReader(DbDataReader, String) GetTextReader(DbDataReader, String) GetTextReader(DbDataReader, String) GetTextReader(DbDataReader, String)

Gets a text reader to retrieve data from the column.

GetValue(DbDataReader, String) GetValue(DbDataReader, String) GetValue(DbDataReader, String) GetValue(DbDataReader, String)

Gets the value of the specified column as an instance of Object.

IsDBNull(DbDataReader, String) IsDBNull(DbDataReader, String) IsDBNull(DbDataReader, String) IsDBNull(DbDataReader, String)

Gets a value that indicates whether the column contains nonexistent or missing values.

IsDBNullAsync(DbDataReader, String, CancellationToken) IsDBNullAsync(DbDataReader, String, CancellationToken) IsDBNullAsync(DbDataReader, String, CancellationToken) IsDBNullAsync(DbDataReader, String, CancellationToken)

Asynchronously gets a value that indicates whether the column contains non-existent or missing values.

Applies to