public DThietBiCollection FetchAll() { DThietBiCollection coll = new DThietBiCollection(); Query qry = new Query(DThietBi.Schema); coll.LoadAndCloseReader(qry.ExecuteReader()); return coll; }
public DThietBiCollection FetchByQuery(Query qry) { DThietBiCollection coll = new DThietBiCollection(); coll.LoadAndCloseReader(qry.ExecuteReader()); return coll; }
public DThietBiCollection FetchByID(object IdThietBi) { DThietBiCollection coll = new DThietBiCollection().Where("IdThietBi", IdThietBi).Load(); return coll; }