Beispiel #1
0
        public TransactionCollection FetchByQuery(Query qry)
        {
            TransactionCollection coll = new TransactionCollection();

            coll.LoadAndCloseReader(qry.ExecuteReader());
            return(coll);
        }
Beispiel #2
0
        public TransactionCollection FetchAll()
        {
            TransactionCollection coll = new TransactionCollection();
            Query qry = new Query(Transaction.Schema);

            coll.LoadAndCloseReader(qry.ExecuteReader());
            return(coll);
        }
Beispiel #3
0
        /// <summary>
        /// Fetch by order id.
        /// </summary>
        /// <param name="orderId">The order id.</param>
        /// <returns></returns>
        public TransactionCollection FetchByOrderId(int orderId)
        {
            IDataReader           reader = SPs.FetchAssociatedOrderTransactions(orderId).GetReader();
            TransactionCollection transactionCollection = new TransactionCollection();

            transactionCollection.LoadAndCloseReader(reader);
            transactionCollection.Sort(Transaction.Columns.TransactionDate, true);
            return(transactionCollection);
        }
Beispiel #4
0
        public TransactionCollection FetchByID(object TransactionId)
        {
            TransactionCollection coll = new TransactionCollection().Where("TransactionId", TransactionId).Load();

            return(coll);
        }