Esempio n. 1
0
    public override void DropDatabase()
    {
        ClearStatusVector();

        _fbClient.isc_drop_database(_statusVector, ref _handle);

        ProcessStatusVector(_statusVector);

        _handle.Dispose();
    }
        public override Task DropDatabase(AsyncWrappingCommonArgs async)
        {
            ClearStatusVector();

            _fbClient.isc_drop_database(_statusVector, ref _handle);

            ProcessStatusVector(_statusVector);

            _handle.Dispose();

            return(Task.CompletedTask);
        }
        public void DropDatabase()
        {
            lock (this)
            {
                int dbHandle = Handle;

                // Clear status vector
                ClearStatusVector();

                _fbClient.isc_drop_database(_statusVector, ref dbHandle);

                ParseStatusVector(_statusVector);

                _handle = 0;
            }
        }
        public void DropDatabase()
        {
            lock (this)
            {
                int dbHandle = this.Handle;

                // Clear status vector
                this.ClearStatusVector();

                fbClient.isc_drop_database(this.statusVector, ref dbHandle);

                this.ParseStatusVector(this.statusVector);

                this.handle = 0;
            }
        }