/// <summary>
        /// Close an active database connection.
        /// </summary>
        public override void CloseDatabaseConnection()
        {
            if (!this.opened)
            {
                return;
            }

            base.CloseDatabaseConnection();

            lock (this.syncRoot)
            {
                VistaDBAPI.ivsql_CloseDatabaseConnection(this.connectionID);
                this.opened = false;
            }
        }
Beispiel #2
0
        /// <summary>
        /// Close an active database connection.
        /// </summary>
        public void CloseDatabaseConnection()
        {
            if (!opened)
            {
                return;
            }

            lock (syncRoot)
            {
                for (int i = 0; i < queries.Length; i++)
                {
                    queries[i].FreeQuery();
                }

                VistaDBAPI.ivsql_CloseDatabaseConnection(connectionID);
                opened = false;
            }
        }