DataRecord class

Represents one record in a dataset. Implements the System.Data.IDataRecord

public class Korzh.DbUtils.DataRecord
    : IDataRecord

Properties

Type Name Description
Int32 FieldCount Gets the number of columns in the current row.
Object Item Gets or sets the value of the column by its name.
Object Item Gets or sets the value of the column by its name.

Methods

Type Name Description
Boolean GetBoolean(Int32 i) Gets the value of the specified column as a Boolean.
Byte GetByte(Int32 i) Gets the 8-bit unsigned integer value of the specified column.
Int64 GetBytes(Int32 i, Int64 fieldOffset, Byte[] buffer, Int32 bufferoffset, Int32 length) Reads a stream of bytes from the specified column offset into the buffer as an array, starting at the given buffer offset.
Char GetChar(Int32 i) Gets the character value of the specified column.
Int64 GetChars(Int32 i, Int64 fieldoffset, Char[] buffer, Int32 bufferoffset, Int32 length) Reads a stream of characters from the specified column offset into the buffer as an array, starting at the given buffer offset.
IDataReader GetData(Int32 i) Returns an for the specified column ordinal.
String GetDataTypeName(Int32 i) Gets the data type information for the specified field.
DateTime GetDateTime(Int32 i) Gets the date and time data value of the specified field.
Decimal GetDecimal(Int32 i) Gets the fixed-position numeric value of the specified field.
Double GetDouble(Int32 i) Gets the double-precision floating point number of the specified field.
Type GetFieldType(Int32 i) Gets the information corresponding to the type of that would be returned from .
Single GetFloat(Int32 i) Gets the single-precision floating point number of the specified field.
Guid GetGuid(Int32 i) Returns the GUID value of the specified field.
Int16 GetInt16(Int32 i) Gets the 16-bit signed integer value of the specified field.
Int32 GetInt32(Int32 i) Gets the 32-bit signed integer value of the specified field.
Int64 GetInt64(Int32 i) Gets the 64-bit signed integer value of the specified field.
String GetName(Int32 i) Gets the name for the field to find.
Int32 GetOrdinal(String name) Return the index of the named field.
String GetString(Int32 i) Gets the string value of the specified field.
Object GetValue(Int32 i) Return the value of the specified field.
Int32 GetValues(Object[] values) Populates an array of objects with the column values of the current record.
Boolean IsDBNull(Int32 i) Return whether the specified field is set to null.