Beispiel #1
0
        public TThethuocCollection FetchByQuery(Query qry)
        {
            TThethuocCollection coll = new TThethuocCollection();

            coll.LoadAndCloseReader(qry.ExecuteReader());
            return(coll);
        }
Beispiel #2
0
        public TThethuocCollection FetchAll()
        {
            TThethuocCollection coll = new TThethuocCollection();
            Query qry = new Query(TThethuoc.Schema);

            coll.LoadAndCloseReader(qry.ExecuteReader());
            return(coll);
        }
Beispiel #3
0
        public TThethuocCollection FetchByID(object IdThuoc)
        {
            TThethuocCollection coll = new TThethuocCollection().Where("id_thuoc", IdThuoc).Load();

            return(coll);
        }