我尝试使用命令启用迁移
启用迁移
但是我收到下面的错误,我不太了解如何解决...
错误消息:
Checking if the context targets an existing database...
No MigrationSqlGenerator found for provider 'MySql.Data.MySqlClient'. Use the SetSqlGenerator method in the target migrations configuration class to register additional SQL generators.
确保从Nuget软件包管理器安装了Microsoft.Entityframeworkcore.tools。
如果AppDbContext与启动文件位于同一项目中
如果AppDbContext在其他项目中,请从命令行打开包含项目的根目录