| 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();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.
DbConnectionBase Class | DbConnectionBase Members
© 2002 - 2013 Devart. All Rights Reserved.