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