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