• Facebook
  • Twitter
  • Youtube
  • LinedIn
  • RSS
  • Docs
  • Comparisons
  • Blogs
  • Download
  • Contact Us
Download
Show / Hide Table of Contents

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.

Contact Us

PHONE

+1 (214) 764-6933   (US)

+44 20 7993 8327   (UK)

 
EMAIL

sales@alachisoft.com

support@alachisoft.com

NCache
  • NCache Enterprise
  • NCache Community
  • Edition Comparison
  • NCache Architecture
  • Benchmarks
Download
Pricing
Try Playground

Deployments
  • Cloud (SaaS & Software)
  • On-Premises
  • Kubernetes
  • Docker
Technical Use Cases
  • ASP.NET Sessions
  • ASP.NET Core Sessions
  • Pub/Sub Messaging
  • Real-Time ASP.NET SignalR
  • Internet of Things (IoT)
  • NoSQL Database
  • Stream Processing
  • Microservices
Resources
  • Magazine Articles
  • Third-Party Articles
  • Articles
  • Videos
  • Whitepapers
  • Shows
  • Talks
  • Blogs
  • Docs
Customer Case Studies
  • Testimonials
  • Customers
Support
  • Schedule a Demo
  • Forum (Google Groups)
  • Tips
Company
  • Leadership
  • Partners
  • News
  • Events
  • Careers
Contact Us

  • EnglishChinese (Simplified)FrenchGermanItalianJapaneseKoreanPortugueseSpanish

  • Contact Us
  •  
  • Sitemap
  •  
  • Terms of Use
  •  
  • Privacy Policy
© Copyright Alachisoft 2002 - . All rights reserved. NCache is a registered trademark of Diyatech Corp.
Back to top