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