A Sandcastle Documented Class Library

# DataConnector GetReader Method

Executes the relational query.

Namespace: Dundas.BI.Entities.DataConnectors
Assembly: Dundas.BI.Core (in Dundas.BI.Core.dll) Version: 2.0.0.0 (10.0.0.1002)
Syntax
C#
VB
C++
F#
Copy

    public Reader GetReader(
    	IDisposable connection,
    	QueryDefinition query
    )

    Public Function GetReader (
    	connection As IDisposable,
    	query As QueryDefinition
    ) As Reader

    public:
    Reader^ GetReader(
    	IDisposable^ connection,
    	QueryDefinition^ query
    )

    member GetReader :
            connection : IDisposable *
            query : QueryDefinition -> Reader

#### Parameters

connection
  Type: System
  IDisposable
  Database connection. If
  , the new connection is created.
query
  Type: Dundas.BI.Data.DataProviders
  QueryDefinition
  The query definition.

#### Return Value

Type: Reader
The data reader.
Exceptions

Exception | Condition
--- | ---
DataConnectionException | The provider may throw this exception if it cannot establish the connection.

See Also

#### Reference

DataConnector Class
Dundas.BI.Entities.DataConnectors Namespace