I added a new property to my model of an ASP.NET MVC 5.2 application with MySQL database, and now I'd like to add a database migration for this by using this command:
Add-Migration RegisterPropertyAdded
But, I get an exception:
Type is not resolved for member MySql.Data.MySqlClient.MySqlException,MySql.Data, Version=6.9.7.0, Culture=neutral, PublicKeyToken=c5687fc88969c44d
It seems that MySQL wants to throw an exception but can't find the exception class for reasons I don't understand. I installed the following NuGet packages in the project:
EntityFramework Version 6.1.3
MySql.Data Version 6.9.7
MySql.Data.Entities, Version 6.8.3.0
MySql.Data.Entity Version 6.9.7
In the model, the class MySql.Data.MySqlClient.MySqlException is shown, so it seems like the class exists and I can't find any information that additional packages are required for the exception class.