public static void InsertMysqlRelationShip() { ConectarSiteds(); string query = "select * from Parentesco where flag = '0'"; OleDbCommand commandselect = new OleDbCommand(query, Conex); OleDbDataReader reader = commandselect.ExecuteReader(); ConnectionMySQL.Connect(); while (reader.Read()) { ConnectionMySQL.InsertRelationShip(reader.GetString(0).ToString(), reader.GetString(1).ToString()); UpdateAfterInsert("Parentesco", "cParnCode", 0, reader); } ConnectionMySQL.Disconnect(); FinalMessage(); }