Class DbReader
Base class of database reader.
Implements
Inherited Members
Namespace: DevZest.Data
Assembly: DevZest.Data.dll
Syntax
public abstract class DbReader : IDisposable
Constructors
Name | Description |
---|---|
DbReader(Model) | Initializes a new instance of DbReader for specified model. |
Properties
Name | Description |
---|---|
IsBof | Gets a value that reports whether the reader position is at beginning-of-file. |
IsClosed | Gets a values indicating whether this DbReader is closed. |
IsEof | Gets a value that reports whether the reader position is at end-of-file. |
Item[Int32] | Gets the value of specified column. |
Model | Gets the model associated with this DbReader. |
Methods
Name | Description |
---|---|
Close() | Closes and disposes this DbReader. |
Dispose() | Releases the resources owned by this DbReader. |
Dispose(Boolean) | Releases the resources owned by this DbReader. |
GetBoolean(Int32) | Gets the value of specified column as Boolean. |
GetByte(Int32) | Gets the value of specified column as Byte. |
GetChar(Int32) | Gets the value of specified column as Char. |
GetDateTime(Int32) | Gets the value of specified column as DateTime. |
GetDbDataReader() | Gets the ADO.Net database data reader. |
GetDecimal(Int32) | Gets the value of specified column as Decimal. |
GetDouble(Int32) | Gets the value of specified column as Double. |
GetGuid(Int32) | Gets the value of specified column as Guid. |
GetInt16(Int32) | Gets the value of specified column as Int16. |
GetInt32(Int32) | Gets the value of specified column as Int32. |
GetInt64(Int32) | Gets the value of specified column as Int64. |
GetSingle(Int32) | Gets the value of specified column as Single. |
GetString(Int32) | Gets the value of specified column as String. |
ReadAsync(CancellationToken) | Read to next record. |
ToString() |