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