System.Data.IDbConnection

Represents an open connection to a data source, and is implemented by .NET Framework data providers that access relational databases.

See Also: IDbConnection Members

Syntax

public interface IDbConnection : IDisposable

Remarks

The System.Data.IDbConnection interface enables an inheriting class to implement a Connection class, which represents a unique session with a data source (for example, a network connection to a server). For more information about Connection classes, see [<topic://cpconadonetconnections>].

An application does not create an instance of the System.Data.IDbConnection interface directly, but creates an instance of a class that inherits System.Data.IDbConnection.

Classes that inherit System.Data.IDbConnection must implement all inherited members, and typically define additional members to add provider-specific functionality. For example, the System.Data.IDbConnection interface defines the IDbConnection.ConnectionTimeout property. In turn, the System.Data.SqlClient.SqlConnection class inherits this property, and also defines the System.Data.SqlClient.SqlConnection.PacketSize property.

Requirements

Namespace: System.Data
Assembly: System.Data (in System.Data.dll)
Assembly Versions: 1.0.3300.0, 1.0.5000.0, 2.0.0.0