public ProductPhotoCollection FetchByQuery(Query qry) { ProductPhotoCollection coll = new ProductPhotoCollection(); coll.LoadAndCloseReader(qry.ExecuteReader()); return(coll); }
public ProductPhotoCollection FetchAll() { ProductPhotoCollection coll = new ProductPhotoCollection(); Query qry = new Query(ProductPhoto.Schema); coll.LoadAndCloseReader(qry.ExecuteReader()); return(coll); }
public ProductPhotoCollection FetchByID(object ProductPhotoID) { ProductPhotoCollection coll = new ProductPhotoCollection().Where("ProductPhotoID", ProductPhotoID).Load(); return(coll); }