public ProductTypeCollection FetchByQuery(Query qry) { ProductTypeCollection coll = new ProductTypeCollection(); coll.LoadAndCloseReader(qry.ExecuteReader()); return(coll); }
public ProductTypeCollection FetchAll() { ProductTypeCollection coll = new ProductTypeCollection(); Query qry = new Query(ProductType.Schema); coll.LoadAndCloseReader(qry.ExecuteReader()); return(coll); }