AdoDotNetSchemaReader Class

Definition

Represents an implementation of the IVsDataReader and IVsDataReaderDescriptor interfaces using the schema of an ADO .NET DbDataReader object (retrieved by calling GetSchemaTable).

public ref class AdoDotNetSchemaReader : Microsoft::VisualStudio::Data::Framework::DataReader
public class AdoDotNetSchemaReader : Microsoft.VisualStudio.Data.Framework.DataReader
type AdoDotNetSchemaReader = class
    inherit DataReader
Public Class AdoDotNetSchemaReader
Inherits DataReader
Inheritance
AdoDotNetSchemaReader

Constructors

AdoDotNetSchemaReader(DbDataReader, DbCommand)

Initializes a new instance of the AdoDotNetSchemaReader class with a data reader object and a data command object.

AdoDotNetSchemaReader(DbDataReader)

Initializes a new instance of the AdoDotNetSchemaReader class with a data reader object.

Properties

Descriptor

Gets information that describes the data from a data source.

(Inherited from DataReader)
HasDescriptor

Gets a value indicating whether the data parameter exposes its IVsDataReaderDescriptor implementation.

IsClosed

Gets a value indicating whether the AdoDotNetSchemaReader is closed.

ItemCount

Gets an integer value specifying the number of data items contained in the current AdoDotNetSchemaReader instance.

SchemaTable

Gets the DataTable object that represents the schema of the DbDataReader passed into the constructor of the AdoDotNetSchemaReader.

Status

Gets a numerical status code returned by the method currently providing data to the DataReader object.

Methods

Close()

Closes the current AdoDotNetSchemaReader instance.

Dispose()

Releases managed resources held for the current DataReader instance.

(Inherited from DataReader)
Dispose(Boolean)

Cleans up resources associated with the current DataReader instance, both when the public Dispose() method is called and when the object is finalized with a call to the Finalize() method.

(Inherited from DataReader)
GetBytes(Int32, Byte[], Int32, Int32)

Reads a stream of bytes into the buffer as an array, starting at a specified offset.

GetBytes(String, Byte[], Int32, Int32)

Retrieves a specified number of bytes of raw binary data.

(Inherited from DataReader)
GetItem(Int32)

Retrieves a data item at a specified index.

GetItem(String)

Retrieves a data item with a specified name.

GetItemIndex(String)

Retrieves the index of the item for the given item name, such as the index of a column for a given column name.

GetItemMaxLength(Int32)

Retrieves an integer value specifying the maximum length of the data item at the specified index.

GetItemName(Int32)

Retrieves the string literal name of the data item at the specified index.

GetItemType(Int32, DataItemTypeFormat)

Retrieves the data type for a data item at a specified index and with a specified item type format.

GetItemType(Int32)

Retrieves the data type of a data item, or items, at the specified index for the default format Default.

(Inherited from DataReader)
IsNullItem(Int32)

Retrieves a Boolean value indicating whether the data item at the specified index is null.

IsNullItem(String)

Retrieves a Boolean value indicating whether the data item value for the specified data item name is null.

NextResult()

Tests whether there is another result set and, if true, advances the AdoDotNetSchemaReader.

Read()

Tests whether there is another data record and, if true, advances the AdoDotNetSchemaReader to the next record.

Terminate()

Terminates the DataReader object immediately, without necessarily returning all of the data or setting output parameters.

Applies to