Good day!
Studying the implementation of the MVC pattern using ASP.NET and reading a lot of tutorials on creating web applications using these tools, I noticed that almost everywhere they use MS SQL Server, because It integrates perfectly with Visual Studio.
But since before this database I created in MySQL Workbench, it is closer to me in terms of ease of operation. I tried to find ways to get data from the mysql database on the Internet, but found nothing concrete and useful. I found this:
metanit offers automatic database generation based on the model, which is not very convenient for me.
An article on the microsoft site suggests creating a database in Azure, then using mysql worckbench to connect to Azure, but in the application itself, the data is only added, it is not read from the database.
On the official MySql website , ADO technology was used (it suits me), but in step Figure 7.3 Creating a new MySQL connection , I do not have the MySql Database in the list, and when I try to use the
connectionStringsI set inweb.configas follows:<connectionStrings> <add name="DefaultConnection" connectionString="Server=localhost; user id=root; password=some-password; database=booksdb" providerName="MySql.Data.MySqlClient" /> </connectionStrings>I still could not establish a connection with mysql using ADO, although I added the Entity Framework, MySql.Data.dll and MySql.Data.Entity to the solution. Incomprehensible crutches.
I think there are people here who have encountered this problem and, I hope, will be able to help me.
Thank you