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