public HoadonMauCollection FetchAll() { HoadonMauCollection coll = new HoadonMauCollection(); Query qry = new Query(HoadonMau.Schema); coll.LoadAndCloseReader(qry.ExecuteReader()); return coll; }
public HoadonMauCollection FetchByQuery(Query qry) { HoadonMauCollection coll = new HoadonMauCollection(); coll.LoadAndCloseReader(qry.ExecuteReader()); return coll; }
public HoadonMauCollection FetchByID(object IdHoadonMau) { HoadonMauCollection coll = new HoadonMauCollection().Where("id_hoadon_mau", IdHoadonMau).Load(); return coll; }