public TThongtinRavienCollection FetchAll() { TThongtinRavienCollection coll = new TThongtinRavienCollection(); Query qry = new Query(TThongtinRavien.Schema); coll.LoadAndCloseReader(qry.ExecuteReader()); return coll; }
public TThongtinRavienCollection FetchByQuery(Query qry) { TThongtinRavienCollection coll = new TThongtinRavienCollection(); coll.LoadAndCloseReader(qry.ExecuteReader()); return coll; }
public TThongtinRavienCollection FetchByID(object SoPhieuRavien) { TThongtinRavienCollection coll = new TThongtinRavienCollection().Where("SO_PHIEU_RAVIEN", SoPhieuRavien).Load(); return coll; }