I need to access a mysql database from c# code but I would prefer not to use ODBC for the reasons below.
I have to create a demo and I am using xampp on a USB drive. My code (database Read/Write code) is written in C#. So to keep the USB drive isolated from the computer that the demo runs on I am moving away from ODBC because of setup reasons.
http://dev.mysql.com/downloads/connector/net/5.2.html
Last time I tried it it worked fine but if you need to connect to, for example, MySQL and SQL Server you’ll need to duplicate the code once using SqlConnection and the other using MysqlConnection.