System.Data.IDbConnection Members

The members of System.Data.IDbConnection are listed below.

Public Properties

ConnectionStringstring.

Gets or sets the string used to open a database.

[read-only]
ConnectionTimeoutint.

Gets the time to wait while trying to establish a connection before terminating the attempt and generating an error.

[read-only]
Databasestring.

Gets the name of the current database or the database to be used after a connection is opened.

[read-only]
StateConnectionState.

Gets the current state of the connection.

Public Methods

BeginTransaction() : IDbTransaction

Begins a database transaction.

BeginTransaction(IsolationLevel) : IDbTransaction

Begins a database transaction with the specified System.Data.IsolationLevel value.

ChangeDatabase(string)

Changes the current database for an open Connection object.

Close()

Closes the connection to the database.

CreateCommand() : IDbCommand

Creates and returns a Command object associated with the connection.

Open()

Opens a database connection with the settings specified by the ConnectionString property of the provider-specific Connection object.