//Autocompletar public static List <string> dsConsultaEstudiante(long Id) { try { stConexion = obclsConexion.stGetConexion(); List <string> resultado = new List <string>(); _SqlConnection = new SqlConnection(stConexion); _SqlConnection.Open(); _SqlCommand = new SqlCommand("spAutocomplementarEstudiante", _SqlConnection); _SqlCommand.CommandType = CommandType.StoredProcedure; _SqlCommand.Parameters.Add(new SqlParameter("@codigo", Id)); reader = _SqlCommand.ExecuteReader(); while (reader.Read()) { resultado.Add(reader["Nombre"].ToString()); } return(resultado); } catch (Exception ex) { throw ex; } finally { _SqlConnection.Close(); } }
public clsUsuario()//Metodo constructor { clsConexion obclsConexion = new clsConexion(); stConexion = obclsConexion.stGetConexion(); }
public clsDocente()//Metodo constructor { clsConexion obclsConexion = new clsConexion(); stConexion = obclsConexion.stGetConexion(); }