EnumerableQueryResult
Overview
This class is used internally by DA Linq to represent Linq query results while processing them in the LinqDataAdapter or RemoteTable. Normally, you will never have to create instances of this class manually, as this is done by Data Abstract's Linq infrastructure.
Location
- Reference: RemObjects.DataAbstract.dll
- Namespace: RemObjects.DataAbstract.Linq
- Ancestry: QueryResult | EnumerableQueryResult
constructor protected (declared in QueryResult)
constructor
EnumerableQueryResult()
Sub New()
constructor (IDataReader, array of Int32)
Creates a new instance of the EnumerableQueryResult class using the provided IDataReader instance and the array of offsets between the columns of this query and the dataset columns.
Note that the newly created EnumerableQueryResult instance uses the provided IDataReader instance to retrieve data, so you shouldn't close or dispose it.
constructor(aData: IDataReader; anOffsets: array of Int32)
EnumerableQueryResult(IDataReader aData, Int32[] anOffsets)
Sub New(aData As IDataReader, anOffsets As Int32())
Parameters:
- aData: Data source for this QueryResult instance
- anOffsets: This instance's column offsets
Count
Query columns count.
property Count: Int32 read;
Int32 Count { get; }
ReadOnly Property Count() As Int32
GetValue
Retrieves the value of the column anOffsets[i] (see constructor parameters) from the underlying IDataReader and converts it to aConvertType.
Note: Culture System.Globalization.CultureInfo.InvariantCulture is used while converting data to the requested type.
method GetValue(i: Int32; convertType: Type): Object
Object GetValue(Int32 i, Type convertType)
Function GetValue(i As Int32, convertType As Type) As Object
Parameters:
- i: EnumerableQueryResult column index
- convertType:
IsDbNull
Returns true if the current value of the column i is null, otherwise returns false.
method IsDbNull(i: Int32): Boolean
Boolean IsDbNull(Int32 i)
Function IsDbNull(i As Int32) As Boolean
Parameters:
- i: EnumerableQueryResult column index
Next
Retrieves the next row from the underlying IDataReader and returns true if this operation was successful.
method Next: Boolean
Boolean Next()
Function Next() As Boolean
Reset
This method is not used in this class.
method Reset
void Reset()
Sub Reset()
Count
Query columns count.
property Count: Int32 read;
Int32 Count { get; }
ReadOnly Property Count() As Int32
constructor protected (declared in QueryResult)
constructor
EnumerableQueryResult()
Sub New()
constructor (IDataReader, array of Int32)
Creates a new instance of the EnumerableQueryResult class using the provided IDataReader instance and the array of offsets between the columns of this query and the dataset columns.
Note that the newly created EnumerableQueryResult instance uses the provided IDataReader instance to retrieve data, so you shouldn't close or dispose it.
constructor(aData: IDataReader; anOffsets: array of Int32)
EnumerableQueryResult(IDataReader aData, Int32[] anOffsets)
Sub New(aData As IDataReader, anOffsets As Int32())
Parameters:
- aData: Data source for this QueryResult instance
- anOffsets: This instance's column offsets
GetValue
Retrieves the value of the column anOffsets[i] (see constructor parameters) from the underlying IDataReader and converts it to aConvertType.
Note: Culture System.Globalization.CultureInfo.InvariantCulture is used while converting data to the requested type.
method GetValue(i: Int32; convertType: Type): Object
Object GetValue(Int32 i, Type convertType)
Function GetValue(i As Int32, convertType As Type) As Object
Parameters:
- i: EnumerableQueryResult column index
- convertType:
IsDbNull
Returns true if the current value of the column i is null, otherwise returns false.
method IsDbNull(i: Int32): Boolean
Boolean IsDbNull(Int32 i)
Function IsDbNull(i As Int32) As Boolean
Parameters:
- i: EnumerableQueryResult column index
Next
Retrieves the next row from the underlying IDataReader and returns true if this operation was successful.
method Next: Boolean
Boolean Next()
Function Next() As Boolean
Reset
This method is not used in this class.
method Reset
void Reset()
Sub Reset()