Represents a read-only bi-directional cursor in an UltraLite database.
Public Class ULDataReader Inherits System.Data.Common.DbDataReader Implements System.ComponentModel.IListSource
public class ULDataReader : System.Data.Common.DbDataReader, System.ComponentModel.IListSource
All members of the ULDataReader class, including all inherited members.
Name | Description |
---|---|
Closes the cursor. | |
|
Releases all resources used by the current instance of the ![]() |
Returns the value for the specified column as a System.Boolean. | |
Returns the value for the specified column as an unsigned 8-bit value (System.Byte). | |
UL Ext: Returns the value for the specified column as an array of System.Bytes values. | |
This method is not supported in UltraLite.NET. | |
Copies a subset of the value for the specified ULDbType.LongVarchar column, beginning at the specified offset, to the specified offset of the destination System.Char array. | |
|
Returns a ![]() |
Returns the name of the specified column's provider data type. | |
Returns the value for the specified column as a System.DateTime type with millisecond accuracy. | |
|
Returns a ![]() |
Returns the value for the specified column as a System.Decimal type. | |
Returns the value for the specified column as a System.Double type. | |
Returns an System.Collections.IEnumerator value that iterates through the ULDataReader object. | |
Returns the System.Type value most appropriate for the specified column. | |
|
Synchronously gets the value of the specified column as a type. |
|
Asynchronously gets the value of the specified column as a type. |
Returns the value for the specified column as a System.Single type. | |
Returns the value for the specified column as a UUID (System.Guid) type. | |
Returns the value for the specified column as a System.Int16 type. | |
Returns the value for the specified column as a System.Int32 type. | |
Returns the value for the specified column as a System.Int64 type. | |
Returns the name of the specified column. | |
Returns the column ID of the named column. | |
|
Returns the provider-specific field type of the specified column. |
|
Gets the value of the specified column as an instance of ![]() |
|
Gets all provider-specific attribute columns in the collection for the current row. |
UL Ext: Returns the number of rows in the cursor, within threshold. | |
Returns a System.Data.DataTable value that describes the column metadata of the ULDataReader object. | |
|
Retrieves data as a ![]() |
Returns the value for the specified column as a System.String type. | |
|
Retrieves data as a ![]() |
Returns the value for the specified column as a System.TimeSpan type with millisecond accuracy. | |
Returns the value for the specified column as a System.UInt16 type. | |
Returns the value for the specified column as a System.UInt32 type. | |
Returns the value for the specified column as a System.UInt64 type. | |
Returns the value of the specified column in its native format. | |
Returns all the column values for the current row. | |
Checks whether the value from the specified column is NULL. | |
|
An asynchronous version of ![]() |
UL Ext: Positions the cursor to after the last row of the cursor. | |
UL Ext: Positions the cursor to before the first row of the cursor. | |
UL Ext: Positions the cursor to the first row of the cursor. | |
UL Ext: Positions the cursor to the last row of the cursor. | |
UL Ext: Positions the cursor to the next row or after the last row if the cursor was already on the last row. | |
UL Ext: Positions the cursor to the previous row or before the first row. | |
UL Ext: Positions the cursor relative to the current row. | |
Advances the ULDataReader object to the next result when reading the results of batch SQL statements. | |
|
An asynchronous version of ![]() ![]() |
Positions the cursor to the next row, or after the last row if the cursor was already on the last row. | |
|
An asynchronous version of ![]() |
Returns the depth of nesting for the current row. | |
Returns the number of columns in the cursor. | |
Checks whether the ULDataReader object has one or more rows. | |
UL Ext: Checks whether the current row position is before the first row. | |
Checks whether the cursor is currently open. | |
UL Ext: Checks whether the current row position is after the last row. | |
Returns the number of rows changed, inserted, or deleted by execution of the SQL statement. | |
UL Ext: Returns the number of rows in the cursor. | |
UL Ext: Holds the schema of this cursor. | |
Returns the value of the specified column in its native format. | |
|
Gets the number of fields in the ![]() |
Cursors are sets of rows from either a table or the result set from a query.
There is no constructor for the ULDataReader class. To get a ULDataReader object, execute a ULCommand object:
' Visual Basic Dim cmd As ULCommand = new ULCommand( _ "SELECT emp_id FROM employee", conn _ ) Dim reader As ULDataReader = cmd.ExecuteReader() |
The following code is the C# language equivalent:
// C# ULCommand cmd = new ULCommand( "SELECT emp_id FROM employee", conn ); ULDataReader reader = cmd.ExecuteReader(); |
UL Ext: The ADO.NET standard only requires forward-only motion through the result set, but ULDataReader objects are bi-directional. ULDataReader's Move methods provide you with full flexibility when moving through results.
A ULDataReader object is a read-only result set. If you need a more flexible object to manipulate results, use the ULCommand.ExecuteResultSet method, the ULCommand.ExecuteTable method, or the ULDataAdapter class. The ULDataReader class retrieves rows as needed, whereas the ULDataAdapter class must retrieve all rows of a result set before you can carry out any action on the object. For large result sets, this difference gives the ULDataReader class a much faster response time.
UL Ext: All columns of a ULDataReader object may be retrieved using the GetString method.
Close method
GetBoolean method
GetByte method
GetBytes method
GetChar method
GetChars method
GetDataTypeName method
GetDateTime method
GetDecimal method
GetDouble method
GetEnumerator method
GetFieldType method
GetFloat method
GetGuid method
GetInt16 method
GetInt32 method
GetInt64 method
GetName method
GetOrdinal method
GetRowCount method
GetSchemaTable method
GetString method
GetTimeSpan method
GetUInt16 method
GetUInt32 method
GetUInt64 method
GetValue method
GetValues method
IsDBNull method
MoveAfterLast method
MoveBeforeFirst method
MoveFirst method
MoveLast method
MoveNext method
MovePrevious method
MoveRelative method
NextResult method
Read method
Depth property
FieldCount property
HasRows property
IsBOF property
IsClosed property
IsEOF property
RecordsAffected property
RowCount property
Schema property
this property
![]() |
Discuter à propos de cette page dans DocCommentXchange.
|
Copyright © 2013, SAP AG ou société affiliée SAP - SAP Sybase SQL Anywhere 16.0 |