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