本文主要是介绍IdentityServer如何生成mysql ef core连接源码和迁移Migration,希望对大家解决编程问题提供一定的参考价值,需要的开发者们随着小编来一起学习吧!
https://gitee.com/heminzhang/identity-server-mysql-migrations
JohnHe404/IdentityServerMysqlMigrations · GitHub
复制最新的IdentityServer4.EntityFramework.Storage项目代码进来到src目录
执行Add-Migration命令 //Add-Migration InitialIdentityServerPersistedGrantDbMigration -c PersistedGrantDbContext -p IdentityServer4.EntityFramework.Storage -o Migrations/IdentityServer/PersistedGrantDb //Add-Migration InitialIdentityServerConfigurationDbMigration -c ConfigurationDbContext -p IdentityServer4.EntityFramework.Storage -o Migrations/IdentityServer/ConfigurationDb
Copy the latest IdentityServer4.EntityFramework.Storage project code into the src directory
Execute the Add-Migration command
//Add-Migration InitialIdentityServerPersistedGrantDbMigration -c PersistedGrantDbContext -p IdentityServer4.EntityFramework.Storage -o Migrations/IdentityServer/PersistedGrantDb //Add-Migration InitialIdentityServerConfigurationDbMigration -c ConfigurationDbContext -p IdentityServer4.EntityFramework.Storage -o Migrations/IdentityServer/ConfigurationDb
这篇关于IdentityServer如何生成mysql ef core连接源码和迁移Migration的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!