I need to use MySql inside a C # application. So far I have mixed results.
I can connect and issue commands very well, but I am having real problems processing results and results.
I can not find solid and good documentation. The only official documentation I can find is here http://dev.mysql.com/doc/refman/5.0/es/connector-net-examples-mysqldatareader.html
My biggest problem is that I just can't figure out the basics ...
while (Reader.Read())
There is simply no detailed information in the documentation about how this works.
After I did this, I saw several different examples, and I can pull the data in the following ways.
Console.WriteLine(Reader[0] + " - " + Reader[1]);
or
for (int i = 0; i < Reader.FieldCount; i++) Console.WriteLine(Reader.GetValue(i).ToString() + ",");
However, it seems that I cannot find documentation that covers and does not fully understand what is happening.
At the moment I do not want to use specific code examples, I would ideally like to get a link to some solid and good documentation or (preferably, additionally) an explanation of what Reader.Read does, and two other code examples.
source share