示例#1
0
        public void obtener_Aspirantes()
        {
            DataSet datos = new DataSet();

            try
            {
                accion.entidadAspirante = entAspirante;

                datos = accion.obtenerAspirante();
                if (datos == null || datos.Tables.Count == 0 || datos.Tables[0].Rows.Count == 0)
                {
                    listaAspirantes = null;
                }
                else
                {
                    listaAspirantes = new List <eAspirante>();
                    foreach (DataRow dr in datos.Tables[0].Rows)
                    {
                        eAspirante a = new eAspirante();
                        a.NOMBRE    = (string)dr["nombre"];
                        a.PATERNO   = (string)dr["paterno"];
                        a.MATERNO   = (string)dr["materno"];
                        a.FECHA_NAC = (DateTime)dr["fecha"];
                        listaAspirantes.Add(a);
                    }
                }
            }
            catch (Exception)
            {
                throw;
            }
        }
示例#2
0
 public dAspirante()
 {
     stringconexion   = "Data Source=(local)\\SQLEXPRESS;Initial Catalog=BOLSA_EXAMEN;Integrated Security=True";
     entidadAspirante = new eAspirante();
 }
示例#3
0
        public nAspirante()
        {
            entAspirante = new eAspirante();

            accion = new dAspirante();
        }