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; } }
public dAspirante() { stringconexion = "Data Source=(local)\\SQLEXPRESS;Initial Catalog=BOLSA_EXAMEN;Integrated Security=True"; entidadAspirante = new eAspirante(); }
public nAspirante() { entAspirante = new eAspirante(); accion = new dAspirante(); }