public NoitruPhieudieutriCollection FetchByQuery(Query qry) { NoitruPhieudieutriCollection coll = new NoitruPhieudieutriCollection(); coll.LoadAndCloseReader(qry.ExecuteReader()); return(coll); }
public NoitruPhieudieutriCollection FetchAll() { NoitruPhieudieutriCollection coll = new NoitruPhieudieutriCollection(); Query qry = new Query(NoitruPhieudieutri.Schema); coll.LoadAndCloseReader(qry.ExecuteReader()); return(coll); }
public NoitruPhieudieutriCollection FetchByID(object IdPhieudieutri) { NoitruPhieudieutriCollection coll = new NoitruPhieudieutriCollection().Where("id_phieudieutri", IdPhieudieutri).Load(); return(coll); }