Ejemplo n.º 1
0
        public PdPamiCCollection FetchByQuery(Query qry)
        {
            PdPamiCCollection coll = new PdPamiCCollection();

            coll.LoadAndCloseReader(qry.ExecuteReader());
            return(coll);
        }
Ejemplo n.º 2
0
        public PdPamiCCollection FetchAll()
        {
            PdPamiCCollection coll = new PdPamiCCollection();
            Query             qry  = new Query(PdPamiC.Schema);

            coll.LoadAndCloseReader(qry.ExecuteReader());
            return(coll);
        }
Ejemplo n.º 3
0
        public PdPamiCCollection FetchAllPaged(int start, int pageLength)
        {
            int startIndex;

            if (start == 0)
            {
                startIndex = 1;
            }
            else
            {
                startIndex = start / pageLength;
            }
            PdPamiCCollection coll = new PdPamiCCollection();
            Query             qry  = new Query(PdPamiC.Schema);

            qry.PageSize  = pageLength;
            qry.PageIndex = startIndex;
            coll.LoadAndCloseReader(qry.ExecuteReader());
            return(coll);
        }