'字符串参数' migrationId'不能为空.' [英] 'The string argument 'migrationId' cannot be empty.'

查看:135
本文介绍了'字符串参数' migrationId'不能为空.'的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

由于一个奇怪的错误而被阻止.我正在asp.net核心Web应用程序中工作,并在其中使用EF core 1.1.0.

Blocked on a weird error. I am working in an asp.net core web application, and using EF core 1.1.0 in it.

EF数据库迁移引发错误'字符串参数'migrationId'不能为空.尝试执行以下命令时

EF database migration is throwing error 'The string argument 'migrationId' cannot be empty.' when trying to execute below command

dbcontext.Database.Migrate();

通过链接执行了已接受的答案,但是它没有解决我的问题.

Performed accepted answer from the the link but it did not solved my issue.

Uninstall donet 2.0.0, installed 1.1.0 and restarted PC. Still i am getting the same error.

有人可以帮我吗?

推荐答案

我已经解决了我的问题.

I had solved my issue.

只需删除开发数据库并在启动时执行迁移即可.

Just deleted development database and executed migration on start.

现在可以正常工作了.

这篇关于'字符串参数' migrationId'不能为空.'的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆