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