public static void InsertMysqlClasificationServiceType() { ConectarTedef(); string query = "select * from ts_tipoclasificaciongasto where flag = '0' order by codigoclasificaciongasto;"; OleDbCommand commandselect = new OleDbCommand(query, Conex); OleDbDataReader reader = commandselect.ExecuteReader(); ConnectionMySQL.Connect(); while (reader.Read()) { ConnectionMySQL.InsertClasificationServiceType(reader.GetString(0), reader.GetString(1)); UpdateAfterInsert("ts_rubro", "codigoclasificaciongasto", 0, reader); } ConnectionMySQL.Disconnect(); FinalMessage(); }