skoruba / IdentityServer4.Admin

The administration for the IdentityServer4 and Asp.Net Core Identity
MIT License
3.57k stars 1.15k forks source link

ef 怎么迁移到远程数据库,命令怎么写?以下命令执行会Build failed. #636

Closed LiWenZi closed 4 years ago

LiWenZi commented 4 years ago

update-database DbInit -Context AdminIdentityDbContext -Project Skoruba.IdentityServer4.Admin.EntityFramework.MySql

chen1tian commented 4 years ago

build失败跟迁移没关系,请编译通过后在执行迁移命令。

The build failure is not related to the migration, please make sure that the build passes before executing the migration command.

b0 commented 4 years ago

@LiWenZi @chen1tian could you write in English please? Thank you.

seamusic commented 4 years ago

请将你的编译错误截图出来。

hdu7 commented 4 years ago

Identity Server and Identity Server Administration UI Initial setup steps

  1. Build solutions
  2. Change Database connection inside IdentityServer.Admin->appsettings.json IdentityServer.STS.Identity ->appsettings.json
  3. Create DB, Run each commands from nuget package console, selected project should be IdentityServer.Admin update-database -context IdentityServerConfigurationDbContext update-database -context IdentityServerPersistedGrantDbContext update-database -context AdminIdentityDbContext update-database -context AdminLogDbContext
  4. Done
skoruba commented 4 years ago

I am closing now this issue, feel free reopen. Thanks