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

            coll.LoadAndCloseReader(qry.ExecuteReader());
            return(coll);
        }
예제 #2
0
        /// <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);
        }
예제 #3
0
        /// <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);
        }
예제 #4
0
        public DownloadCollection FetchPurchasedDownloadsByUserId(Guid userId)
        {
            IDataReader        reader             = SPs.FetchPurchasedDownloadsByUserId(userId).GetReader();
            DownloadCollection downloadCollection = new DownloadCollection();

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

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

            return(coll);
        }