AdoDotNetSchemaReader Class

Provides a means for obtaining the schema of the DbDataReader object that encapsulates the result set.

Namespace:  Microsoft.VisualStudio.Data.Framework.AdoDotNet
Assembly:  Microsoft.VisualStudio.Data.Framework (in Microsoft.VisualStudio.Data.Framework.dll)

Syntax

'宣言
Public Class AdoDotNetSchemaReader _
    Inherits DataReader
'使用
Dim instance As AdoDotNetSchemaReader
public class AdoDotNetSchemaReader : DataReader
public ref class AdoDotNetSchemaReader : public DataReader
public class AdoDotNetSchemaReader extends DataReader

Remarks

Implements the IVsDataReader and the IVsDataReaderDescriptor interfaces. This class takes as input a DbDataReader object and exposes the schema of the DbDataReader object as a DDEX DataReader.

The format of the data reader exposed is that required by the DeriveSchema(String, DataCommandType, [], Int32) method, which has a fixed set of columns. It does not expose exactly the same information that is provided when calling the GetSchemaTable method on the underlying DbDataReader instance.

Inheritance Hierarchy

System.Object
  Microsoft.VisualStudio.Data.Framework.DataReader
    Microsoft.VisualStudio.Data.Framework.AdoDotNet.AdoDotNetSchemaReader

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See Also

Reference

AdoDotNetSchemaReader Members

Microsoft.VisualStudio.Data.Framework.AdoDotNet Namespace