예제 #1
0
        public PdIoseCollection FetchByQuery(Query qry)
        {
            PdIoseCollection coll = new PdIoseCollection();

            coll.LoadAndCloseReader(qry.ExecuteReader());
            return(coll);
        }
예제 #2
0
        public PdIoseCollection FetchAll()
        {
            PdIoseCollection coll = new PdIoseCollection();
            Query            qry  = new Query(PdIose.Schema);

            coll.LoadAndCloseReader(qry.ExecuteReader());
            return(coll);
        }
예제 #3
0
        public PdIoseCollection FetchAllPaged(int start, int pageLength)
        {
            int startIndex;

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

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