0
我试图建立商店我IdentityServer4令牌服务器, 在那里我遇到了数据库迁移一样,所以我下面沿着这个tutorial:ApplicationDBContext AspUsers转移命令
dotnet ef migrations add InitialIdentityServerMigration -c PersistedGrantDbContext
dotnet ef migrations add InitialIdentityServerMigration -c ConfigurationDbContext
dotnet ef migrations add InitialIdentityServerMigration -c ApplicationDbContext
显然我快不同版本的PowerShell或工具都搞砸了,所以我必须使用不同的语法
Add-Migration InitialIdentityServerPersistedGrantDbMigration -c PersistedGrantDbContext -o Data/Migrations/IdentityServer/PersistedGrantDb
Add-Migration InitialIdentityServerConfigurationDbMigration -c ConfigurationDbContext -o Data/Migrations/IdentityServer/ConfigurationDb
Theese两个命令工作很大但我仍然失踪的第三个命令生成运行我的迁移在ApplicationDbContext:
当我跑我得到这个异常:
SQLEXCEPTION:无效的对象名称AspNetUsers“。
我错过了这张表以及一些其他数据库的身份,有谁知道使用哪种迁移?