DataReader<TRead> Class
Definition
Provides a generic way of reading a forward-only stream of rows from a TRead based data source. This is an abstract class.
public abstract class DataReader<TRead> : Disposable, IDataReader, IDataRecord, IDisposable
Type Parameters
TReadThe type of the value that this IDataReader will read.
- Inheritance
-
DataReader<TRead>
- Implements
- Derived
- Inherited Members
Constructors
| Name | Description |
|---|---|
| DataReader() | Initializes a new instance of the DataReader<TRead> class. |
Properties
| Name | Description |
|---|---|
| Depth | Gets a value indicating the depth of nesting for the current row. |
| FieldCount | Gets the number of columns in the current row. |
| this[int] | Gets the column located at the specified index. |
| this[string] | Gets the column with the specified name. |
| NullRead | Gets the value that indicates that no more rows exists. |
| RowCount | Gets the currently processed row count of this instance. |
Methods
| Name | Description |
|---|---|
| Contains(string) | Determines whether this instance contains a column with the specified name. |
| GetBoolean(int) | Gets the value of the specified column as a Boolean. |
| GetByte(int) | Gets the 8-bit unsigned integer value of the specified column. |
| GetBytes(int, long, byte[], int, int) | Reads a stream of bytes from the specified column, starting at location indicated by dataOffset, into the buffer, starting at the location indicated by bufferOffset. |
| GetChar(int) | Gets the character value of the specified column. |
| GetDateTime(int) | Gets the date and time data value of the specified field. |
| GetDecimal(int) | Gets the fixed-position numeric value of the specified field. |
| GetDouble(int) | Gets the double-precision floating point number of the specified field. |
| GetFieldType(int) | Gets the Type information corresponding to the type of Object that would be returned from GetValue(int). |
| GetFloat(int) | Gets the single-precision floating point number of the specified field. |
| GetGuid(int) | Returns the GUID value of the specified field. |
| GetInt16(int) | Gets the 16-bit signed integer value of the specified field. |
| GetInt32(int) | Gets the 32-bit signed integer value of the specified field. |
| GetInt64(int) | Gets the 64-bit signed integer value of the specified field. |
| GetName(int) | Gets the name for the field to find. |
| GetOrdinal(string) | Return the index of the named field. |
| GetString(int) | Gets the string value of the specified field. |
| GetValue(int) | Return the value of the specified field. |
| GetValues(object[]) | Populates an array of objects with the column values of the current record. |
| IsDBNull(int) | Return whether the specified field is set to null. |
| Read() | Advances the IDataReader to the next record. |
| ReadNext(TRead) | Advances the IDataReader to the next record. |
| SetFields(IOrderedDictionary) | Sets the fields of the current record invoked by ReadNext(TRead). |
| ToString() | Returns a string that represents the current row of this instance. |