protected override void Dispose(bool disposing)
        {
            if (!IsDisposed)
            {
                try
                {
                    // release any unmanaged resources
                    Release();

                    // release any managed resources
                    if (disposing)
                    {
                        Clear();

                        _db              = null;
                        _fields          = null;
                        _parameters      = null;
                        _transaction     = null;
                        _outputParams    = null;
                        _allRowsFetched  = false;
                        _recordsAffected = 0;
                        _state           = StatementState.Deallocated;
                        _handle          = 0;
                    }
                }
                finally
                {
                    base.Dispose(disposing);
                }
            }
        }
示例#2
0
        protected override void Dispose(bool disposing)
        {
            if (!this.IsDisposed)
            {
                try
                {
                    // release any unmanaged resources
                    this.Release();

                    // release any managed resources
                    if (disposing)
                    {
                        this.Clear();

                        this.db              = null;
                        this.fields          = null;
                        this.parameters      = null;
                        this.transaction     = null;
                        this.outputParams    = null;
                        this.allRowsFetched  = false;
                        this.recordsAffected = 0;
                        this.state           = StatementState.Deallocated;
                        this.handle          = 0;
                    }
                }
                finally
                {
                    base.Dispose(disposing);
                }
            }
        }
示例#3
0
        public ITransaction BeginTransaction(TransactionParameterBuffer tpb)
        {
            ExtTransaction transaction = new ExtTransaction(this);

            transaction.BeginTransaction(tpb);

            return(transaction);
        }
示例#4
0
        public ExtArray(
            IDatabase db,
            ITransaction transaction,
            long handle,
            string tableName,
            string fieldName)
            : base(tableName, fieldName)
        {
            if (!(db is ExtDatabase))
            {
                throw new ArgumentException("Specified argument is not of GdsDatabase type.");
            }
            if (!(transaction is ExtTransaction))
            {
                throw new ArgumentException("Specified argument is not of GdsTransaction type.");
            }
            this.db          = (ExtDatabase)db;
            this.transaction = (ExtTransaction)transaction;
            this.handle      = handle;

            this.LookupBounds();
        }
示例#5
0
        public ExtArray(
            IDatabase db,
            ITransaction transaction,
            long handle,
            string tableName,
            string fieldName)
            : base(tableName, fieldName)
        {
            if (!(db is ExtDatabase))
            {
                throw new ArgumentException("Specified argument is not of GdsDatabase type.");
            }
            if (!(transaction is ExtTransaction))
            {
                throw new ArgumentException("Specified argument is not of GdsTransaction type.");
            }
            this.db = (ExtDatabase)db;
            this.transaction = (ExtTransaction)transaction;
            this.handle = handle;

            this.LookupBounds();
        }
		public ITransaction BeginTransaction(TransactionParameterBuffer tpb)
		{
			ExtTransaction transaction = new ExtTransaction(this);
			transaction.BeginTransaction(tpb);

			return transaction;
		}
示例#7
0
        protected override void Dispose(bool disposing)
        {
            if (!this.IsDisposed)
            {
                try
                {
                    // release any unmanaged resources
                    this.Release();

                    // release any managed resources
                    if (disposing)
                    {
                        this.Clear();

                        this.db = null;
                        this.fields = null;
                        this.parameters = null;
                        this.transaction = null;
                        this.outputParams = null;
                        this.allRowsFetched = false;
                        this.recordsAffected = 0;
                        this.state = StatementState.Deallocated;
                        this.handle = 0;
                    }
                }
                finally
                {
                    base.Dispose(disposing);
                }
            }
        }
		protected override void Dispose(bool disposing)
		{
			if (!IsDisposed)
			{
				try
				{
					// release any unmanaged resources
					Release();

					// release any managed resources
					if (disposing)
					{
						Clear();

						_db = null;
						_fields = null;
						_parameters = null;
						_transaction = null;
						_outputParams = null;
						_allRowsFetched = false;
						_recordsAffected = 0;
						_state = StatementState.Deallocated;
						_handle = 0;
					}
				}
				finally
				{
					base.Dispose(disposing);
				}
			}
		}
		protected override void Dispose(bool disposing)
		{
			if (!IsDisposed)
			{
				try
				{
					Release();
				}
				catch
				{ }

					if (disposing)
					{
						Clear();

						_db = null;
						_fields = null;
						_parameters = null;
						_transaction = null;
						_outputParams = null;
						_allRowsFetched = false;
						_recordsAffected = 0;
						_state = StatementState.Deallocated;
						_handle = 0;
					}

					base.Dispose(disposing);
				}
			}