Overload | Description |
---|---|
VistaDBConnection Constructor() | Represents an open connection to a VistaDB database. This class cannot be inherited. It is considered a best practice to close the connection as soon as you are finished with it. Do NOT place the .Close() call in a Finalizer or object destructor. Both of those are non-deterministic (you cannot predict when or if they will be called). This leads to connection handle leaks over the lifetime of an application. Class VistaDBConnection VistaDBConnection.ClearAllPools VistaDBConnection.ClearPool |
VistaDBConnection Constructor(String) | Initializes a new instance of the VistaDBConnection class when given a string that contains the connection string.
It is considered a best practice to close the connection as soon as you are finished with it. Do NOT place the .Close() call in a Finalizer or object destructor. Both of those are non-deterministic (you cannot predict when or if they will be called). This leads to connection handle leaks over the lifetime of an application. |
VistaDBConnection Constructor(IVistaDBDatabase) | Initializes a new instance of VistaDBConnection class with given IVistaDBDatabase instance. When connection is closed, database stays opened. In order to close the database you have to call Close method of respective IVistaDBDatabase instance. |