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

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

            coll.LoadAndCloseReader(qry.ExecuteReader());
            return(coll);
        }
Beispiel #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);
        }
Beispiel #4
0
        public PdPacienteCollection FetchByID(object IdPdPaciente)
        {
            PdPacienteCollection coll = new PdPacienteCollection().Where("id_PdPaciente", IdPdPaciente).Load();

            return(coll);
        }