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