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