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

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

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

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

            qry.PageSize  = pageLength;
            qry.PageIndex = startIndex;
            coll.LoadAndCloseReader(qry.ExecuteReader());
            return(coll);
        }
Ejemplo n.º 4
0
        public PdProfeCollection FetchByID(object Id)
        {
            PdProfeCollection coll = new PdProfeCollection().Where("id", Id).Load();

            return(coll);
        }