public TPhieuNhapxuatthuocChitietCollection FetchByQuery(Query qry)
        {
            TPhieuNhapxuatthuocChitietCollection coll = new TPhieuNhapxuatthuocChitietCollection();

            coll.LoadAndCloseReader(qry.ExecuteReader());
            return(coll);
        }
        public TPhieuNhapxuatthuocChitietCollection FetchAll()
        {
            TPhieuNhapxuatthuocChitietCollection coll = new TPhieuNhapxuatthuocChitietCollection();
            Query qry = new Query(TPhieuNhapxuatthuocChitiet.Schema);

            coll.LoadAndCloseReader(qry.ExecuteReader());
            return(coll);
        }
        public TPhieuNhapxuatthuocChitietCollection FetchByID(object IdPhieuchitiet)
        {
            TPhieuNhapxuatthuocChitietCollection coll = new TPhieuNhapxuatthuocChitietCollection().Where("id_phieuchitiet", IdPhieuchitiet).Load();

            return(coll);
        }