public TThethuocCollection FetchByQuery(Query qry) { TThethuocCollection coll = new TThethuocCollection(); coll.LoadAndCloseReader(qry.ExecuteReader()); return(coll); }
public TThethuocCollection FetchAll() { TThethuocCollection coll = new TThethuocCollection(); Query qry = new Query(TThethuoc.Schema); coll.LoadAndCloseReader(qry.ExecuteReader()); return(coll); }
public TThethuocCollection FetchByID(object IdThuoc) { TThethuocCollection coll = new TThethuocCollection().Where("id_thuoc", IdThuoc).Load(); return(coll); }