这是基于vue-vben-admin 模板适用于abp Vnext的前端管理项目
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
colin 7aaeb83474 feat(migrations): 聚合EfCore数据库连接字符串 11 months ago
..
Properties upgrade abp framework to 7.0.0 3 years ago
IdentityServerDbMigratorHostedService.cs deploy: add once deployment script 2 years ago
IdentityServerDbMigratorModule.Configure.cs feat(migrations): 创建独立的迁移脚本项目. 3 years ago
IdentityServerDbMigratorModule.cs deploy: add once deployment script 2 years ago
LY.MicroService.IdentityServer.DbMigrator.csproj feat(migrations): 聚合EfCore数据库连接字符串 11 months ago
Program.cs deploy: add once deployment script 2 years ago
README.EN.md feat(docs): 添加数据迁移模块文档 1 year ago
README.md feat(docs): 添加数据迁移模块文档 1 year ago
Usings.cs upgrade abp framework to 7.0.0 3 years ago
appsettings.json feat(migrations): 聚合EfCore数据库连接字符串 11 months ago

README.md

LY.MicroService.IdentityServer.DbMigrator

身份认证服务器数据库迁移控制台应用程序,用于执行身份认证服务器的数据库迁移和初始化种子数据。

English

功能特性

  • 自动执行数据库迁移
  • 初始化系统必要的种子数据
  • 支持命令行参数配置
  • 集成Autofac依赖注入容器
  • 继承身份认证服务器的所有迁移功能
  • 支持IdentityServer4配置
  • 支持OAuth 2.0和OpenID Connect协议
  • 支持用户和角色管理
  • 支持客户端和API资源管理

模块依赖

[DependsOn(
    typeof(IdentityServerMigrationsEntityFrameworkCoreModule),
    typeof(AbpAutofacModule)
)]

配置项

{
  "ConnectionStrings": {
    "IdentityServerDbMigrator": "你的数据库连接字符串"
  },
  "IdentityServer": {
    "Clients": {
      "IdentityServer_App": {
        "ClientId": "IdentityServer_App"
      }
    }
  }
}

基本用法

  1. 配置数据库连接字符串

    • 在appsettings.json中配置IdentityServerDbMigrator连接字符串
  2. 运行迁移程序

    dotnet run
    

命令行参数

  • --database-provider
    • 指定数据库提供程序 (默认: MySQL)
  • --connection-string
    • 指定数据库连接字符串
  • --skip-db-migrations
    • 跳过数据库迁移
  • --skip-seed-data
    • 跳过种子数据初始化

种子数据

  • 默认用户和角色
  • 标准身份资源
  • API资源和范围
  • 默认客户端配置
  • 基本权限配置

更多信息