代码拉取完成,页面将自动刷新
同步操作将从 老张的哲学/Blog.IdentityServer 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
如果你喜欢这个项目或者它帮助你, 请给 Star~(辛苦星咯)
/*
* 本项目同时支持Mysql和Sqlserver,我一直使用的是Mysql,所以Mysql的迁移文件已经配置好,在Data文件夹下,
* 直接执行update-database xxxx,那三步即可。如果你使用sqlserver,可以先从迁移开始,下边有步骤
*
* 当然你也可以把Data文件夹除了ApplicationDbContext.cs文件外都删掉,自己重新做迁移。
* 迁移完成后,执行dotnet run /seed
* 1、PM> add-migration InitialIdentityServerPersistedGrantDbMigrationMysql -c PersistedGrantDbContext -o Data/MigrationsMySql/IdentityServer/PersistedGrantDb
Build started...
Build succeeded.
To undo this action, use Remove-Migration.
2、PM> update-database -c PersistedGrantDbContext
Build started...
Build succeeded.
Applying migration '20200509165052_InitialIdentityServerPersistedGrantDbMigrationMysql'.
Done.
3、PM> add-migration InitialIdentityServerConfigurationDbMigrationMysql -c ConfigurationDbContext -o Data/MigrationsMySql/IdentityServer/ConfigurationDb
Build started...
Build succeeded.
To undo this action, use Remove-Migration.
4、PM> update-database -c ConfigurationDbContext
Build started...
Build succeeded.
Applying migration '20200509165153_InitialIdentityServerConfigurationDbMigrationMysql'.
Done.
5、PM> add-migration AppDbMigration -c ApplicationDbContext -o Data/MigrationsMySql
Build started...
Build succeeded.
To undo this action, use Remove-Migration.
6、PM> update-database -c ApplicationDbContext
Build started...
Build succeeded.
Applying migration '20200509165505_AppDbMigration'.
Done.
*
*/
博客园:https://www.cnblogs.com/laozhang-is-phi/
视频:https://www.bilibili.com/video/av76828468
微信公众号:https://mvp.neters.club/MVP_ids4_2020/2020
技术:
* .Net Core 3.1 MVC
* EntityFramework Core
* SqlServer/Mysql
* IdentityServer4
* Authentication and Authorization
* OAuth2 and OpenId Connect
* GrantTypes.Implicit
* oidc-client
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。