public DPhongBanCollection FetchAll() { DPhongBanCollection coll = new DPhongBanCollection(); Query qry = new Query(DPhongBan.Schema); coll.LoadAndCloseReader(qry.ExecuteReader()); return coll; }
public DPhongBanCollection FetchByQuery(Query qry) { DPhongBanCollection coll = new DPhongBanCollection(); coll.LoadAndCloseReader(qry.ExecuteReader()); return coll; }
public DPhongBanCollection FetchByID(object IdKhoa) { DPhongBanCollection coll = new DPhongBanCollection().Where("ID_KHOA", IdKhoa).Load(); return coll; }