Class DataTransferRow
- Namespace
- Cuemon.Data
- Assembly
- Cuemon.Data.dll
Represents the row of a table in a database. This class cannot be inherited.
public sealed class DataTransferRow
- Inheritance
-
DataTransferRow
Properties
Columns
Gets the associated columns of this row.
public DataTransferColumnCollection Columns { get; }
Property Value
- DataTransferColumnCollection
The associated columns of this row.
Item[DataTransferColumn]
Gets the value of a DataTransferColumn from the Columns with the specified column
.
public object this[DataTransferColumn column] { get; }
Parameters
column
DataTransferColumnThe column from which to return the value from.
Property Value
Item[Int32]
Gets the value of a DataTransferColumn from the Columns with the specified index
.
public object this[int index] { get; }
Parameters
index
Int32The zero-based index of the column from which to return the value from.
Property Value
Item[String]
Gets the value of a DataTransferColumn from the Columns with the specified name
.
public object this[string name] { get; }
Parameters
name
StringThe name of the column from which to return the value from.
Property Value
Number
Gets the row number.
public int Number { get; }
Property Value
- Int32
The row number.
Methods
As<TResult>(DataTransferColumn)
Gets the value of a DataTransferColumn from the Columns with the specified column
.
public TResult As<TResult>(DataTransferColumn column)
Parameters
column
DataTransferColumnThe column from which to return the value from.
Returns
- TResult
The value associated with the
column
converted to the specifiedTResult
.
Type Parameters
TResult
The type of the result.
As<TResult>(Int32)
Gets the value of a DataTransferColumn from the Columns with the specified index
.
public TResult As<TResult>(int index)
Parameters
index
Int32The zero-based index of the column from which to return the value from.
Returns
- TResult
The value associated with the zero-based
index
of a column converted to the specifiedTResult
.
Type Parameters
TResult
The type of the result.
As<TResult>(String)
Gets the value of a DataTransferColumn from the Columns with the specified name
.
public TResult As<TResult>(string name)
Parameters
name
StringThe name of the column from which to return the value from.
Returns
- TResult
The value associated with the
name
of a column converted to the specifiedTResult
.
Type Parameters
TResult
The type of the result.
ToString()
Returns a String that represents this instance.
public override string ToString()