public TThuocThuaCollection FetchByQuery(Query qry) { TThuocThuaCollection coll = new TThuocThuaCollection(); coll.LoadAndCloseReader(qry.ExecuteReader()); return(coll); }
public TThuocThuaCollection FetchAll() { TThuocThuaCollection coll = new TThuocThuaCollection(); Query qry = new Query(TThuocThua.Schema); coll.LoadAndCloseReader(qry.ExecuteReader()); return(coll); }
public TThuocThuaCollection FetchByID(object IdKho) { TThuocThuaCollection coll = new TThuocThuaCollection().Where("id_kho", IdKho).Load(); return(coll); }