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