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); }