public DDoiTuongCollection FetchAll() { DDoiTuongCollection coll = new DDoiTuongCollection(); Query qry = new Query(DDoiTuong.Schema); coll.LoadAndCloseReader(qry.ExecuteReader()); return coll; }
public DDoiTuongCollection FetchByQuery(Query qry) { DDoiTuongCollection coll = new DDoiTuongCollection(); coll.LoadAndCloseReader(qry.ExecuteReader()); return coll; }
public DDoiTuongCollection FetchByID(object MaDtuong) { DDoiTuongCollection coll = new DDoiTuongCollection().Where("MA_DTUONG", MaDtuong).Load(); return coll; }