“字符串参数 'migrationId' 不能为空。”
'The string argument 'migrationId' cannot be empty.'
因奇怪的错误而被阻止。我在 asp.net 核心 Web 应用程序中工作,并在其中使用 EF 核心 1.1.0。
EF 数据库迁移抛出错误“字符串参数 'migrationId' 不能为空。”尝试执行以下命令时
dbcontext.Database.Migrate();
执行了 接受的答案,但没有解决我的问题。
Uninstall donet 2.0.0, installed 1.1.0 and restarted PC. Still i am getting the same error.
谁能帮我解决这个问题。
我的问题已经解决了。
刚刚删除了开发数据库并在启动时执行了迁移。
它现在完美运行。
当 __EFMigrationsHistory table 中的 MigrationID 列为空时,您将遇到上述问题。确保手动删除此记录并重新运行该命令。请找到相同的屏幕截图。
因奇怪的错误而被阻止。我在 asp.net 核心 Web 应用程序中工作,并在其中使用 EF 核心 1.1.0。
EF 数据库迁移抛出错误“字符串参数 'migrationId' 不能为空。”尝试执行以下命令时
dbcontext.Database.Migrate();
执行了
Uninstall donet 2.0.0, installed 1.1.0 and restarted PC. Still i am getting the same error.
谁能帮我解决这个问题。
我的问题已经解决了。
刚刚删除了开发数据库并在启动时执行了迁移。
它现在完美运行。
当 __EFMigrationsHistory table 中的 MigrationID 列为空时,您将遇到上述问题。确保手动删除此记录并重新运行该命令。请找到相同的屏幕截图。