我有一个使用Server和实体框架的ASP.Net核心应用程序。我使用DI注入数据库上下文。该解决方案有一个web项目和一个数据项目。我希望迁移到MySql,并对代码做了一些小的修改。
运行应用程序会给出错误。
System.TypeLoadException
HResult=0x80131522
Message=Method 'Create' in type 'MySql.Data.EntityFrameworkCore.Query.Internal.MySQLSqlTranslatingExpressionVisitorFactory' from a
重新开始,
我删除了所有迁移文件,删除了MySQL中的所有表,并删除了MySQL中的所有表迁移列。
但是当我运行php artisan make:model Article时,Laravel的反应是
Model created successfully.
Created Migration: 2015_04_28_181243_create_articles_table
这是我之前删除的一个迁移文件!为什么它总是这样回来?我怎么才能完全摆脱它呢?
我尝试使用以下命令启用迁移
启用-迁移
但我发现了下面的错误,我不知道怎么解决它.
我安装了所有的扩展以使其工作。
错误信息:
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