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