我正在使用PostgreSQL数据库和Entity Framework的NpgSQL包。我曾在我的模型的一些变化,现在正试图迁移数据库。但是,输入后:
PM> Update-Database -verbose
我得到:
Using framework 'netcoreapp1.0'
Using data directory 'D:\GIT\foo\Foo\src\Foo.WebApp\.\bin\Debug\netcoreapp1.0'
Build started...
Build failed.
我在github线程中dotnet build
发现了我应该用来发现构建错误的东西。但是,构建成功。还有其他方法可以解决导致数据库无法更新的问题吗?
我遇到了同样的问题,但是只是切换到命令行,一切正常。(我仍然无法在Package Manager Console中解释该错误。)
从Windows PowerShell:
PS C:\{Proj folder}> dotnet ef database update
本文收集自互联网,转载请注明来源。
如有侵权,请联系 [email protected] 删除。
我来说两句