public DmDonViHanhChinhCollection FetchAll() { DmDonViHanhChinhCollection coll = new DmDonViHanhChinhCollection(); Query qry = new Query(DmDonViHanhChinh.Schema); coll.LoadAndCloseReader(qry.ExecuteReader()); return coll; }
public DmDonViHanhChinhCollection FetchByQuery(Query qry) { DmDonViHanhChinhCollection coll = new DmDonViHanhChinhCollection(); coll.LoadAndCloseReader(qry.ExecuteReader()); return coll; }
public DmDonViHanhChinhCollection FetchByID(object DonViHanhChinhId) { DmDonViHanhChinhCollection coll = new DmDonViHanhChinhCollection().Where("DonViHanhChinh_Id", DonViHanhChinhId).Load(); return coll; }