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

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

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

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

            qry.PageSize  = pageLength;
            qry.PageIndex = startIndex;
            coll.LoadAndCloseReader(qry.ExecuteReader());
            return(coll);
        }
예제 #4
0
        public PdPacienteCollection FetchByID(object IdPdPaciente)
        {
            PdPacienteCollection coll = new PdPacienteCollection().Where("id_PdPaciente", IdPdPaciente).Load();

            return(coll);
        }