Muokkaa

Jaa


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
DataReaderExtensions

Methods

GetBoolean(DbDataReader, String)

Gets the value of the specified column as a Boolean.

GetByte(DbDataReader, String)

Gets the value of the specified column as a byte.

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)

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

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)

Returns a nested data reader for the requested column.

GetDataTypeName(DbDataReader, String)

Gets name of the data type of the specified column.

GetDateTime(DbDataReader, String)

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

GetDecimal(DbDataReader, String)

Gets the value of the specified column as a Decimal.

GetDouble(DbDataReader, String)

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

GetFieldType(DbDataReader, String)

Gets the data type of the specified column.

GetFieldValue<T>(DbDataReader, String)

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

GetFieldValueAsync<T>(DbDataReader, String, CancellationToken)

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

GetFloat(DbDataReader, String)

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

GetGuid(DbDataReader, String)

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

GetInt16(DbDataReader, String)

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

GetInt32(DbDataReader, String)

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

GetInt64(DbDataReader, String)

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

GetProviderSpecificFieldType(DbDataReader, String)

Gets the provider-specific type of the specified column.

GetProviderSpecificValue(DbDataReader, String)

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

GetStream(DbDataReader, String)

Gets a stream to retrieve data from the specified column.

GetString(DbDataReader, String)

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

GetTextReader(DbDataReader, String)

Gets a text reader to retrieve data from the column.

GetValue(DbDataReader, String)

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

IsDBNull(DbDataReader, String)

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

IsDBNullAsync(DbDataReader, String, CancellationToken)

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

Applies to