Skip to content

Instantly share code, notes, and snippets.

@alikrc
Last active January 30, 2021 20:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save alikrc/1f1cad2bc38dddf9c084054e2c4e4bf2 to your computer and use it in GitHub Desktop.
Save alikrc/1f1cad2bc38dddf9c084054e2c4e4bf2 to your computer and use it in GitHub Desktop.
identity server ef migration commands
dotnet ef migrations add InitialIdentityServerPersistedGrantDbMigration -c PersistedGrantDbContext -o Data/Migrations/IdentityServer/PersistedGrantDb
dotnet ef migrations add InitialIdentityServerConfigurationDbMigration -c ConfigurationDbContext -o Data/Migrations/IdentityServer/ConfigurationDb
dotnet ef migrations add InitialIdentityServerApplicationDbMigration -c ApplicationDbContext -o Data/Migrations/IdentityServer/ApplicationDb
//reference
https://stackoverflow.com/questions/45574821/identityserver4-persistedgrantdbcontext-configurationdbcontext
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment