Example #1
0
        public DownloadCollection FetchByQuery(Query qry)
        {
            DownloadCollection coll = new DownloadCollection();

            coll.LoadAndCloseReader(qry.ExecuteReader());
            return(coll);
        }
        /// <summary>
        /// Fetches the associated downloads by product id and not for purchase.
        /// </summary>
        /// <param name="productId">The product id.</param>
        /// <returns></returns>
        public DownloadCollection FetchAssociatedDownloadsByProductIdAndNotForPurchase(int productId)
        {
            IDataReader        reader             = SPs.FetchAssociatedDownloadsByProductIdAndNotForPurchase(productId).GetReader();
            DownloadCollection artifactCollection = new DownloadCollection();

            artifactCollection.LoadAndCloseReader(reader);
            return(artifactCollection);
        }
        /// <summary>
        /// Fetches the available downloads by product id.
        /// </summary>
        /// <param name="productId">The product id.</param>
        /// <returns></returns>
        public DownloadCollection FetchAvailableDownloadsByProductId(int productId)
        {
            IDataReader        reader             = SPs.FetchAvailableDownloadsByProductId(productId).GetReader();
            DownloadCollection artifactCollection = new DownloadCollection();

            artifactCollection.LoadAndCloseReader(reader);
            return(artifactCollection);
        }
Example #4
0
        public DownloadCollection FetchPurchasedDownloadsByUserId(Guid userId)
        {
            IDataReader        reader             = SPs.FetchPurchasedDownloadsByUserId(userId).GetReader();
            DownloadCollection downloadCollection = new DownloadCollection();

            downloadCollection.LoadAndCloseReader(reader);
            return(downloadCollection);
        }
Example #5
0
        public DownloadCollection FetchAll()
        {
            DownloadCollection coll = new DownloadCollection();
            Query qry = new Query(Download.Schema);

            coll.LoadAndCloseReader(qry.ExecuteReader());
            return(coll);
        }
Example #6
0
        public DownloadCollection FetchByID(object DownloadId)
        {
            DownloadCollection coll = new DownloadCollection().Where("DownloadId", DownloadId).Load();

            return(coll);
        }