public void ModificarMatri(DfichaMatri dtp) { Comando.Connection = Conexion.AbrirConexion(); Comando.CommandText = "Update Personas set id_anio = '" + dtp.get_anio() + "', id_tipoalumno = '" + dtp.get_tipoalumno() + "'," + "id_estadoalum = '" + dtp.get_estadoalum() + "',id_profesor ='" + dtp.get_profesor() + "', id_tipo_ensenaza ='" + dtp.get_tipoensenanza() + "'," + "id_grado = '" + dtp.get_grado() + "',id_curso = '" + dtp.get_curso() + "', Fecha_ingreso ='" + dtp.get_fechaingreso() + "'," + "Fecha_retiro = '" + dtp.get_fecharetiro() + "', Fecha_egreso = '" + dtp.get_fechaegreso() + "', id_rut ='" + dtp.get_rut_p() + "' where Nro_Matricula = '" + dtp.get_Nro_Matricula() + "'"; Comando.CommandType = CommandType.Text; Comando.ExecuteNonQuery(); Comando.Parameters.Clear(); }