Interface ICacheReader
Reads one or more than forward-only stream of result sets by executing OQ commands on the cache source.
Assembly: Alachisoft.NCache.Client.dll
Syntax
public interface ICacheReader : IDisposable
Properties
FieldCount
Gets number of columns.
Declaration
int FieldCount { get; }
Property Value
Type | Description |
---|---|
System.Int32 | Number of columns. |
IsClosed
True, if reader is closed, else false.
Declaration
bool IsClosed { get; }
Property Value
Type | Description |
---|---|
System.Boolean | Specifies a boolean value, either true or false. |
Methods
Close()
It closes IDataReader.
Declaration
void Close()
GetBoolean(Int32)
Gets value of a specified index as bool.
Declaration
bool GetBoolean(int index)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | index | Index of a column. |
Returns
Type | Description |
---|---|
System.Boolean | Bool value on a specified index. |
GetDateTime(Int32)
Returns DateTime at specified column index.
Declaration
DateTime GetDateTime(int index)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | index | Index of Column. |
Returns
Type | Description |
---|---|
System.DateTime | DateTime value at specified index. |
GetDecimal(Int32)
Gets value of a specified index as decimal.
Declaration
decimal GetDecimal(int index)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | index | Index of a column. |
Returns
Type | Description |
---|---|
System.Decimal | Decimal value on a specified index. |
GetDouble(Int32)
Gets value of specified index as double.
Declaration
double GetDouble(int index)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | index | Index of a column. |
Returns
Type | Description |
---|---|
System.Double | Double value on a specified index. |
GetInt16(Int32)
Gets value of a specified index as 16 bit integer.
Declaration
short GetInt16(int index)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | index | Index of a column. |
Returns
Type | Description |
---|---|
System.Int16 | Int16 value on a specified index. |
GetInt32(Int32)
Gets value of a specified index as 32 bit integer.
Declaration
int GetInt32(int index)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | index | Index of a column. |
Returns
Type | Description |
---|---|
System.Int32 | Int32 value on a specified index. |
GetInt64(Int32)
Gets value of specified index as 64 bit integer.
Declaration
long GetInt64(int index)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | index | Index of a column. |
Returns
Type | Description |
---|---|
System.Int64 | Int64 value on a specified index. |
GetName(Int32)
Returns name of a specified column index.
Declaration
string GetName(int index)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | index | Index of a column. |
Returns
Type | Description |
---|---|
System.String | Name of column. |
GetOrdinal(String)
Returns index of a specified column name.
Declaration
int GetOrdinal(string columnName)
Parameters
Type | Name | Description |
---|---|---|
System.String | columnName | Name of a column. |
Returns
Type | Description |
---|---|
System.Int32 | Index of a column. |
GetString(Int32)
Gets value of specified index as string.
Declaration
string GetString(int index)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | index | Index of a column. |
Returns
Type | Description |
---|---|
System.String | String value on a specified column. |
GetValue<T>(Int32)
Gets value at specified column index.
Declaration
T GetValue<T>(int index)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | index | Index of a column. |
Returns
Type | Description |
---|---|
T | Object value on a specified index. |
Type Parameters
Name | Description |
---|---|
T | Object value on a specified index. |
GetValue<T>(String)
Gets value of specified column name.
Declaration
T GetValue<T>(string columnName)
Parameters
Type | Name | Description |
---|---|---|
System.String | columnName | Name of a column. |
Returns
Type | Description |
---|---|
T | Object value of a specified column. |
Type Parameters
Name | Description |
---|---|
T | Object value of a specified column. |
GetValues(Object[])
Populates array of objects with values in current row.
Declaration
int GetValues(object[] objects)
Parameters
Type | Name | Description |
---|---|---|
System.Object[] | objects | Array of objects to be populated. |
Returns
Type | Description |
---|---|
System.Int32 | Number of objects copied in a specified array. |
Read()
Advances ICacheReader to the next record.
Declaration
bool Read()
Returns
Type | Description |
---|---|
System.Boolean | True, if there are more rows; else false. |