Пример #1
0
        public ProductProductPhotoCollection FetchByQuery(Query qry)
        {
            ProductProductPhotoCollection coll = new ProductProductPhotoCollection();

            coll.LoadAndCloseReader(qry.ExecuteReader());
            return(coll);
        }
Пример #2
0
        public ProductProductPhotoCollection FetchAll()
        {
            ProductProductPhotoCollection coll = new ProductProductPhotoCollection();
            Query qry = new Query(ProductProductPhoto.Schema);

            coll.LoadAndCloseReader(qry.ExecuteReader());
            return(coll);
        }
Пример #3
0
        public ProductProductPhotoCollection FetchByID(object ProductID)
        {
            ProductProductPhotoCollection coll = new ProductProductPhotoCollection().Where("ProductID", ProductID).Load();

            return(coll);
        }