See Also

DbConnectionBase Class  | DbConnectionBase Members

Language

Visual Basic

C#

Show All

See AlsoLanguagesDevart.Data.OracleSend comments on this topic.

Open Method

Devart.Common Namespace > DbConnectionBase Class : Open Method (DbConnectionBase)

Opens a database connection with the property settings specified by the ConnectionString.

[Visual Basic]
Overrides Public Sub Open()
[C#]
public override void Open();

Remarks

The DbConnectionBase draws an open connection from the connection pool if one is available. Otherwise, it establishes a new connection to the database.

Note: If the DbConnectionBase goes out of scope, the connection it represents does not close automatically. Therefore, you must explicitly close the connection by calling Close.

Opening an open connection does nothing.

See Also

DbConnectionBase Class  | DbConnectionBase Members

 

 


© 2002 - 2013 Devart. All Rights Reserved.