示例#1
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);
                }
            }
        }
示例#2
0
        public ITransaction BeginTransaction(TransactionParameterBuffer tpb)
        {
            FesTransaction transaction = new FesTransaction(this);

            transaction.BeginTransaction(tpb);

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

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

			return transaction;
		}
		public FesArray(
			IDatabase		db,
			ITransaction	transaction,
			long			handle,	
			string			tableName, 
			string			fieldName)	: base(tableName, fieldName)
		{
			if (!(db is	FesDatabase))
			{
				throw new ArgumentException("Specified argument is not of GdsDatabase type.");
			}
			if (!(transaction is FesTransaction))
			{
				throw new ArgumentException("Specified argument is not of GdsTransaction type.");
			}
			this.db			 = (FesDatabase)db;
			this.transaction = (FesTransaction)transaction;
			this.handle		 = handle;

			this.LookupBounds();
		}
		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);
				}
			}
		}