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