Represents an open connection to a data source, and is implemented by SQL Server Reporting Services data processing extensions that access relational databases.
public interface class IDbConnection : IDisposable, Microsoft::ReportingServices::Interfaces::IExtension
public interface IDbConnection : IDisposable, Microsoft.ReportingServices.Interfaces.IExtension
Public Interface IDbConnection Implements IDisposable, IExtension
The IDbConnection interface enables you to implement a Connectionclass, which represents a unique session with a data source. The IDbConnection interface can be used to build a custom data provider. For more information about Connection classes, see Implementing a Connection Class for a Data Processing Extension.
Classes that implement IDbConnection must implement all required members, and typically define additional members to add provider-specific functionality. Because IDbConnection inherits from IExtension, you must also implement the IExtension members as part of your Connection class.
When you implement from the IDbConnection interface, you should also implement the following constructors:
|PrvConnection()||Initializes a new instance of the PrvConnection class.|
|PrvConnection(string connectionString )||Initializes a new instance of the PrvConnection class when given a string containing the connection string.|
|ConnectionString ConnectionString ConnectionString||
Gets or sets the string used to open a database.
|ConnectionTimeout ConnectionTimeout ConnectionTimeout||
Gets the time to wait, while trying to establish a connection, before terminating the attempt and generating an error.
|BeginTransaction() BeginTransaction() BeginTransaction()||
Begins a database transaction.
|Close() Close() Close()||
Closes the connection to the database.
|CreateCommand() CreateCommand() CreateCommand()||
Creates and returns a Command object associated with the connection.
|Open() Open() Open()||
Initializes a database connection with the settings specified by the ConnectionString property of the provider-specific Connection object.