public ITransaction BeginTransaction(TransactionParameterBuffer tpb) { GdsTransaction transaction = new GdsTransaction(this); transaction.BeginTransaction(tpb); return(transaction); }
public GdsArray(IDatabase db, ITransaction transaction, long handle, string tableName, string fieldName) : base(tableName, fieldName) { if (!(db is GdsDatabase)) { throw new ArgumentException("Specified argument is not of GdsDatabase type."); } if (!(transaction is GdsTransaction)) { throw new ArgumentException("Specified argument is not of GdsTransaction type."); } this.db = (GdsDatabase)db; this.transaction = (GdsTransaction)transaction; this.handle = handle; this.LookupBounds(); }
protected override void Dispose(bool disposing) { lock (this) { if (!this.IsDisposed) { try { // release any unmanaged resources this.Release(); // release any managed resources if (disposing) { this.Clear(); this.rows = null; this.outputParams = null; this.db = null; this.fields = null; this.parameters = null; this.transaction = null; this.allRowsFetched = false; this.state = StatementState.Deallocated; this.handle = 0; this.fetchSize = 0; this.recordsAffected = 0; } } finally { base.Dispose(disposing); } } } }
public ITransaction BeginTransaction(TransactionParameterBuffer tpb) { GdsTransaction transaction = new GdsTransaction(this); transaction.BeginTransaction(tpb); return transaction; }