Class DataTransferRow
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.
this[DataTransferColumn]
Gets the value of a DataTransferColumn from the Columns with the specified column.
public object this[DataTransferColumn column] { get; }
Parameters
columnDataTransferColumnThe column from which to return the value from.
Property Value
this[int]
Gets the value of a DataTransferColumn from the Columns with the specified index.
public object this[int index] { get; }
Parameters
indexintThe zero-based index of the column from which to return the value from.
Property Value
this[string]
Gets the value of a DataTransferColumn from the Columns with the specified name.
public object this[string name] { get; }
Parameters
namestringThe name of the column from which to return the value from.
Property Value
Number
Gets the row number.
public int Number { get; }
Property Value
- int
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
columnDataTransferColumnThe column from which to return the value from.
Returns
- TResult
The value associated with the
columnconverted to the specifiedTResult.
Type Parameters
TResultThe type of the result.
As<TResult>(int)
Gets the value of a DataTransferColumn from the Columns with the specified index.
public TResult As<TResult>(int index)
Parameters
indexintThe zero-based index of the column from which to return the value from.
Returns
- TResult
The value associated with the zero-based
indexof a column converted to the specifiedTResult.
Type Parameters
TResultThe 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
namestringThe name of the column from which to return the value from.
Returns
- TResult
The value associated with the
nameof a column converted to the specifiedTResult.
Type Parameters
TResultThe type of the result.
ToString()
Returns a string that represents this instance.
public override string ToString()