ComponentOne DataObjects for .NET
DbConnection Property

C1.Data.2 Assembly > C1.Data.SchemaObjects Namespace > Connection Class : DbConnection Property
Gets .NET IDbConnection object representing open connection.
Syntax
'Declaration
 
Public Property DbConnection As System.Data.IDbConnection
public System.Data.IDbConnection DbConnection {get; set;}
Remarks
This property returns a non-null object only while the connection is open. Depending on the ConnectionType value, DbConnection returns an object of one of the following classes:

for OleDb: System.Data.OleDb.OleDbConnection,

for SqlServer: System.Data.SqlConnection,

for Oracle: Oracle.DataAccess.Client.OracleConnection,

for MSOracle: System.Data.OracleClient.OracleConnection,

for others (Custom): the type is specified in the ConnectionTypeName property.

See Also

Reference

Connection Class
Connection Members