Connect MySQL to ASP.Net Web App
Install MySQL.Data
Using the Nuget Package Manager install the following:
- MySql.Data;
- MySql.Data.MySqlClient;
Creating the connection
Now using the page you want to connect, open the Model `cs` code.
At the top add the following
using MySql.Data;
using MySql.Data.MySqlClient;