Example #1
0
        private void ResetConnection()
        {
            OleDbConnection connection = _connection;

            if (null != connection)
            {
                PropertyChanging();
                CloseInternal();
                if (_trackingForClose)
                {
                    connection.RemoveWeakReference(this);
                    _trackingForClose = false;
                }
            }
            _connection = null;
        }
        private void ResetConnection()
        {
            OleDbConnection connection = this._connection;

            if (connection != null)
            {
                this.PropertyChanging();
                this.CloseInternal();
                if (this._trackingForClose)
                {
                    connection.RemoveWeakReference(this);
                    this._trackingForClose = false;
                }
            }
            this._connection = null;
        }