C# Класс MySql.Data.MySqlClient.MySqlDataReader

Наследование: DbDataReader, IDataReader, IDisposable, IDataRecord
Показать файл Открыть проект Примеры использования класса

Private Properties

Свойство Тип Описание
AdjustOutputTypes void
ChangeType object
ClearKillFlag void
GetFieldValue IMySqlValue
IDataRecord IDataReader
MySqlDataReader System
ProcessOutputParameters void
Throw void

Открытые методы

Метод Описание
Close ( ) : void

Closes the MySqlDataReader object.

GetBoolean ( int i ) : bool

Gets the value of the specified column as a Boolean.

GetBoolean ( string name ) : bool

Gets the value of the specified column as a Boolean.

GetByte ( int i ) : byte

Gets the value of the specified column as a byte.

GetByte ( string name ) : byte

Gets the value of the specified column as a byte.

GetBytes ( int i, long fieldOffset, byte buffer, int bufferoffset, int length ) : long

Reads a stream of bytes from the specified column offset into the buffer an array starting at the given buffer offset.

GetChar ( int i ) : char

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

GetChar ( string name ) : char

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

GetChars ( int i, long fieldoffset, char buffer, int bufferoffset, int length ) : long

Reads a stream of characters from the specified column offset into the buffer as an array starting at the given buffer offset.

GetDataTypeName ( int i ) : String

Gets the name of the source data type.

GetDateTime ( int i ) : System.DateTime
GetDateTime ( string column ) : System.DateTime
GetDecimal ( int i ) : Decimal
GetDecimal ( string column ) : Decimal
GetDouble ( int i ) : double
GetDouble ( string column ) : double
GetEnumerator ( ) : IEnumerator

Returns an IEnumerator that iterates through the MySqlDataReader.

GetFieldType ( int i ) : Type

Gets the Type that is the data type of the object.

GetFieldType ( string column ) : Type
GetFloat ( int i ) : float
GetFloat ( string column ) : float
GetGuid ( int i ) : System.Guid
GetGuid ( string column ) : System.Guid
GetInt16 ( int i ) : Int16
GetInt16 ( string column ) : Int16
GetInt32 ( int i ) : Int32
GetInt32 ( string column ) : Int32
GetInt64 ( int i ) : System.Int64
GetInt64 ( string column ) : System.Int64
GetMySqlDateTime ( int column ) : MySqlDateTime
GetMySqlDateTime ( string column ) : MySqlDateTime
GetMySqlDecimal ( int i ) : MySqlDecimal
GetMySqlDecimal ( string column ) : MySqlDecimal
GetName ( int i ) : String

Gets the name of the specified column.

GetOrdinal ( string name ) : int

Gets the column ordinal, given the name of the column.

GetSByte ( int i ) : sbyte

Gets the value of the specified column as a sbyte.

GetSByte ( string name ) : sbyte

Gets the value of the specified column as a sbyte.

GetSchemaTable ( ) : DataTable

Returns a DataTable that describes the column metadata of the MySqlDataReader.

GetString ( int i ) : String
GetString ( string column ) : string
GetTimeSpan ( int column ) : System.TimeSpan
GetTimeSpan ( string column ) : System.TimeSpan
GetUInt16 ( int column ) : UInt16
GetUInt16 ( string column ) : UInt16
GetUInt32 ( int column ) : UInt32
GetUInt32 ( string column ) : UInt32
GetUInt64 ( int column ) : System.UInt64
GetUInt64 ( string column ) : System.UInt64
GetValue ( int i ) : object

Gets the value of the specified column in its native format.

GetValues ( object values ) : int

Gets all attribute columns in the collection for the current row.

IsDBNull ( int i ) : bool

Gets a value indicating whether the column contains non-existent or missing values.

NextResult ( ) : bool

Advances the data reader to the next result, when reading the results of batch SQL statements.

Read ( ) : bool

Advances the MySqlDataReader to the next record.

this ( String name ) : object

Gets the value of a column in its native format. [C#] In C#, this property is the indexer for the MySqlDataReader class.

this ( int i ) : object

Overloaded. Gets the value of a column in its native format. In C#, this property is the indexer for the MySqlDataReader class.

Приватные методы

Метод Описание
AdjustOutputTypes ( ) : void
ChangeType ( IMySqlValue value, int fieldIndex, Type newType ) : object
ClearKillFlag ( ) : void
GetFieldValue ( int index, bool checkNull ) : IMySqlValue
IDataRecord ( int i ) : IDataReader
MySqlDataReader ( MySqlCommand cmd, PreparableStatement statement, CommandBehavior behavior ) : System
ProcessOutputParameters ( ) : void
Throw ( Exception ex ) : void

Описание методов

Close() публичный Метод

Closes the MySqlDataReader object.
public Close ( ) : void
Результат void

GetBoolean() публичный Метод

Gets the value of the specified column as a Boolean.
public GetBoolean ( int i ) : bool
i int
Результат bool

GetBoolean() публичный Метод

Gets the value of the specified column as a Boolean.
public GetBoolean ( string name ) : bool
name string
Результат bool

GetByte() публичный Метод

Gets the value of the specified column as a byte.
public GetByte ( int i ) : byte
i int
Результат byte

GetByte() публичный Метод

Gets the value of the specified column as a byte.
public GetByte ( string name ) : byte
name string
Результат byte

GetBytes() публичный Метод

Reads a stream of bytes from the specified column offset into the buffer an array starting at the given buffer offset.
public GetBytes ( int i, long fieldOffset, byte buffer, int bufferoffset, int length ) : long
i int The zero-based column ordinal.
fieldOffset long The index within the field from which to begin the read operation.
buffer byte The buffer into which to read the stream of bytes.
bufferoffset int The index for buffer to begin the read operation.
length int The maximum length to copy into the buffer.
Результат long

GetChar() публичный Метод

Gets the value of the specified column as a single character.
public GetChar ( int i ) : char
i int
Результат char

GetChar() публичный Метод

Gets the value of the specified column as a single character.
public GetChar ( string name ) : char
name string
Результат char

GetChars() публичный Метод

Reads a stream of characters from the specified column offset into the buffer as an array starting at the given buffer offset.
public GetChars ( int i, long fieldoffset, char buffer, int bufferoffset, int length ) : long
i int
fieldoffset long
buffer char
bufferoffset int
length int
Результат long

GetDataTypeName() публичный Метод

Gets the name of the source data type.
public GetDataTypeName ( int i ) : String
i int
Результат String

GetDateTime() публичный Метод

public GetDateTime ( int i ) : System.DateTime
i int
Результат System.DateTime

GetDateTime() публичный Метод

public GetDateTime ( string column ) : System.DateTime
column string
Результат System.DateTime

GetDecimal() публичный Метод

public GetDecimal ( int i ) : Decimal
i int
Результат Decimal

GetDecimal() публичный Метод

public GetDecimal ( string column ) : Decimal
column string
Результат Decimal

GetDouble() публичный Метод

public GetDouble ( int i ) : double
i int
Результат double

GetDouble() публичный Метод

public GetDouble ( string column ) : double
column string
Результат double

GetEnumerator() публичный Метод

Returns an IEnumerator that iterates through the MySqlDataReader.
public GetEnumerator ( ) : IEnumerator
Результат IEnumerator

GetFieldType() публичный Метод

Gets the Type that is the data type of the object.
public GetFieldType ( int i ) : Type
i int
Результат System.Type

GetFieldType() публичный Метод

public GetFieldType ( string column ) : Type
column string
Результат System.Type

GetFloat() публичный Метод

public GetFloat ( int i ) : float
i int
Результат float

GetFloat() публичный Метод

public GetFloat ( string column ) : float
column string
Результат float

GetGuid() публичный Метод

public GetGuid ( int i ) : System.Guid
i int
Результат System.Guid

GetGuid() публичный Метод

public GetGuid ( string column ) : System.Guid
column string
Результат System.Guid

GetInt16() публичный Метод

public GetInt16 ( int i ) : Int16
i int
Результат System.Int16

GetInt16() публичный Метод

public GetInt16 ( string column ) : Int16
column string
Результат System.Int16

GetInt32() публичный Метод

public GetInt32 ( int i ) : Int32
i int
Результат System.Int32

GetInt32() публичный Метод

public GetInt32 ( string column ) : Int32
column string
Результат System.Int32

GetInt64() публичный Метод

public GetInt64 ( int i ) : System.Int64
i int
Результат System.Int64

GetInt64() публичный Метод

public GetInt64 ( string column ) : System.Int64
column string
Результат System.Int64

GetMySqlDateTime() публичный Метод

public GetMySqlDateTime ( int column ) : MySqlDateTime
column int
Результат MySql.Data.Types.MySqlDateTime

GetMySqlDateTime() публичный Метод

public GetMySqlDateTime ( string column ) : MySqlDateTime
column string
Результат MySql.Data.Types.MySqlDateTime

GetMySqlDecimal() публичный Метод

public GetMySqlDecimal ( int i ) : MySqlDecimal
i int
Результат MySql.Data.Types.MySqlDecimal

GetMySqlDecimal() публичный Метод

public GetMySqlDecimal ( string column ) : MySqlDecimal
column string
Результат MySql.Data.Types.MySqlDecimal

GetName() публичный Метод

Gets the name of the specified column.
public GetName ( int i ) : String
i int
Результат String

GetOrdinal() публичный Метод

Gets the column ordinal, given the name of the column.
public GetOrdinal ( string name ) : int
name string
Результат int

GetSByte() публичный Метод

Gets the value of the specified column as a sbyte.
public GetSByte ( int i ) : sbyte
i int
Результат sbyte

GetSByte() публичный Метод

Gets the value of the specified column as a sbyte.
public GetSByte ( string name ) : sbyte
name string
Результат sbyte

GetSchemaTable() публичный Метод

Returns a DataTable that describes the column metadata of the MySqlDataReader.
public GetSchemaTable ( ) : DataTable
Результат System.Data.DataTable

GetString() публичный Метод

public GetString ( int i ) : String
i int
Результат String

GetString() публичный Метод

public GetString ( string column ) : string
column string
Результат string

GetTimeSpan() публичный Метод

public GetTimeSpan ( int column ) : System.TimeSpan
column int
Результат System.TimeSpan

GetTimeSpan() публичный Метод

public GetTimeSpan ( string column ) : System.TimeSpan
column string
Результат System.TimeSpan

GetUInt16() публичный Метод

public GetUInt16 ( int column ) : UInt16
column int
Результат System.UInt16

GetUInt16() публичный Метод

public GetUInt16 ( string column ) : UInt16
column string
Результат System.UInt16

GetUInt32() публичный Метод

public GetUInt32 ( int column ) : UInt32
column int
Результат System.UInt32

GetUInt32() публичный Метод

public GetUInt32 ( string column ) : UInt32
column string
Результат System.UInt32

GetUInt64() публичный Метод

public GetUInt64 ( int column ) : System.UInt64
column int
Результат System.UInt64

GetUInt64() публичный Метод

public GetUInt64 ( string column ) : System.UInt64
column string
Результат System.UInt64

GetValue() публичный Метод

Gets the value of the specified column in its native format.
public GetValue ( int i ) : object
i int
Результат object

GetValues() публичный Метод

Gets all attribute columns in the collection for the current row.
public GetValues ( object values ) : int
values object
Результат int

IsDBNull() публичный Метод

Gets a value indicating whether the column contains non-existent or missing values.
public IsDBNull ( int i ) : bool
i int
Результат bool

NextResult() публичный Метод

Advances the data reader to the next result, when reading the results of batch SQL statements.
public NextResult ( ) : bool
Результат bool

Read() публичный Метод

Advances the MySqlDataReader to the next record.
public Read ( ) : bool
Результат bool

this() публичный Метод

Gets the value of a column in its native format. [C#] In C#, this property is the indexer for the MySqlDataReader class.
public this ( String name ) : object
name String
Результат object

this() публичный Метод

Overloaded. Gets the value of a column in its native format. In C#, this property is the indexer for the MySqlDataReader class.
public this ( int i ) : object
i int
Результат object