public static void InsertMysqlSubCoverageType() { ConectarTarifario(); string query = "select * from sub_coverage_types where flag = '0' order by id"; OleDbCommand commandselect = new OleDbCommand(query, Conex); OleDbDataReader reader = commandselect.ExecuteReader(); ConnectionMySQL.Connect(); while (reader.Read()) { ConnectionMySQL.InsertSubCoverageType(reader.GetValue(1).ToString(), reader.GetValue(2).ToString(), reader.GetValue(3).ToString(), reader.GetValue(4).ToString(), reader.GetValue(5).ToString()); UpdateAfterInsert("sub_coverage_types", "id", 0, reader); } ConnectionMySQL.Disconnect(); FinalMessage(); }