This documentation is archived and is not being maintained.
Represents an open connection to a data source, and is implemented by .NET Framework data providers that access relational databases.
The IDbConnection type exposes the following members.
|BeginTransaction||Overloaded. Begins a database transaction.|
|ChangeDatabase||Changes the current database for an open Connection object.|
|Close||Closes the connection to the database.|
|CreateCommand||Creates and returns a Command object associated with the connection.|
|Dispose||Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources. (Inherited from IDisposable.)|
|Open||Opens a database connection with the settings specified by the ConnectionString property of the provider-specific Connection object.|
|ConnectionString||Gets or sets the string used to open a database.|
|ConnectionTimeout||Gets the time to wait while trying to establish a connection before terminating the attempt and generating an error.|
|Database||Gets the name of the current database or the database to be used after a connection is opened.|
|State||Gets the current state of the connection.|