【发布时间】:2017-10-25 04:20:34
【问题描述】:
我一直在尝试修复一个项目,使其具有 IdentityServer4 的 db 脚本。我被告知要跑步
dotnet ef migrations add InitialIdentityServerMigration -c PersistedGrantDbContext
但是当我运行时我收到一个错误:
dotnet:找不到匹配命令“dotnet-ef”的可执行文件
所以我跟着几个resources 获取dotnet-ef
我安装了一些 nuget 包:
- Microsoft.EntityFrameworkCore.Tools
- Microsoft.EntityFrameworkCore.Design
但我仍然收到相同的错误消息。
还有其他方法可以获取 Identity4 DB 的脚本吗?
【问题讨论】:
-
Identity2 和 Identity4 的架构是否相同?
-
很遗憾没有,但略有不同:stackoverflow.com/questions/36345121/…
-
我想我搞砸了。仅适用于 Visual Studio 2012-2013,我只有 2015 年和 2017 年,由于某种原因两者都不想工作
-
搜索一下我相信有人想要同样的东西。我也会搜索,如果我发现了什么,我会在这里包含。
标签: c# entity-framework entity-framework-migrations identityserver4