AseDataReader Class

A read-only, forward-only result set from a query or stored procedure.

Base Classes

MarshalByRefObject

Implements

IDataReader, IDisposable, IDataRecord, IEnumerable, IListSource

Usage

  • There is no constructor for AseDataReader. To get an AseDataReader object, execute an AseCommand:

    AseCommand cmd = new AseCommand("Select emp_id from employee", conn );
    AseDataReader reader = cmd.ExecuteReader();
  • You can only move forward through an AseDataReader. If you need a more flexible object to manipulate results, use an AseDataAdapter.

  • The AseDataReader retrieves rows as needed when you use cursors. For more information see the UseCursor parameter in the ConnectionString property in the AseConnection Constructors.

Related concepts
Ways to Access and Manipulate Data
Related reference
ExecuteReader Method