/// <summary> /// Associates a reader to a transaction. /// </summary> /// <param name="trans">The transaction that will be associated with the reader.</param> /// <param name="reader">The reader to associate.</param> /// <returns>Returns True if the reader was successfully associated, False otherwise.</returns> public virtual bool AssociateReader(IDbTransaction trans, IDataReader reader) { TransactionInfo info = GetTransactionInfo(trans); if (info != null) { info.AddReader(reader); return(true); } return(false); }