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); }
public ProductTypeCollection FetchByID(object ProductTypeId) { ProductTypeCollection coll = new ProductTypeCollection().Where("ProductTypeId", ProductTypeId).Load(); return(coll); }