Which one of the following namespaces contains the definition for IdbConnection?
-
System.Data.Interfaces
-
System.Data.Common
-
System.Data
-
System.Data.Connection
C
Correct answer
Explanation
The IDbConnection interface is defined in the System.Data namespace. System.Data is the core namespace for ADO.NET interfaces including IDbConnection, IDbCommand, IDataAdapter, and IDataReader. System.Data.Common contains base classes like DbConnection that implement these interfaces.