Ejemplo n.º 1
0
        protected override void Warmup()
        {
            m_db = new MassiveTransactionHistory();
            var transaction = m_db.Single("WHERE TransactionID = @0", 100000);

            if (transaction.ProductID <= 0)
            {
                throw new ApplicationException();
            }
        }
Ejemplo n.º 2
0
        protected override void Warmup()
        {
            m_db = new MassiveTransactionHistory();
            var transactions = m_db.Paged(pageSize: 10);

            foreach (var transaction in transactions.Items)
            {
                if (transaction.TransactionID <= 0)
                {
                    throw new ApplicationException();
                }
            }
        }