public NoitruPhieudinhduongCollection FetchAll() { NoitruPhieudinhduongCollection coll = new NoitruPhieudinhduongCollection(); Query qry = new Query(NoitruPhieudinhduong.Schema); coll.LoadAndCloseReader(qry.ExecuteReader()); return coll; }
public NoitruPhieudinhduongCollection FetchByQuery(Query qry) { NoitruPhieudinhduongCollection coll = new NoitruPhieudinhduongCollection(); coll.LoadAndCloseReader(qry.ExecuteReader()); return coll; }
public NoitruPhieudinhduongCollection FetchByID(object Id) { NoitruPhieudinhduongCollection coll = new NoitruPhieudinhduongCollection().Where("Id", Id).Load(); return coll; }