Show / Hide Table of Contents

Class DbReader

Base class of database reader.

Inheritance
System.Object
DbReader
MySqlReader
SqlReader
Implements
System.IDisposable
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
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()
  • Improve this Doc
  • View Source
Back to top Copyright © Weifen Luo | DevZest