diff --git a/README.en.md b/README.en.md index b03d2e3ee..056f06d57 100644 --- a/README.en.md +++ b/README.en.md @@ -227,13 +227,27 @@ VUE_APP_CLIENT_SECRET = '1q2w3e*' ``` -### Initializes the api gateway database +### EntityFramework migration + +Please switch to the service project startup directory and execute the **dotnet EF ** command for database migration + +example: ``` shell -cd aspnet-core/database + +cd aspnet-core/services/admin/LINGYUN.BackendAdminApp.Host + +dotnet ef database update ``` -Please use a tool such as **Navicat** to execute **apigateway-init.sql** + + +### Initializes the apigateway database + +In the **2020-08-05 16:25:00** submission, the **apigateway-init.SQL** file has been read and written to the **DataSeeder** type. Starting the gateway management project will automatically initialize the gateway data. + +Make sure the **aspnet-core/Database/apigateway-init.sql** file exists + ### Configure the RabbitMQ diff --git a/README.md b/README.md index fb6abc67c..7f14852a4 100644 --- a/README.md +++ b/README.md @@ -234,13 +234,24 @@ VUE_APP_CLIENT_SECRET = '1q2w3e*' ``` -### 初始化网关数据库 +### EntityFramework 迁移 + +请切换到服务项目启动目录, 执行 **dotnet ef** 命令进行数据库迁移 +例如: ``` shell -cd aspnet-core/database + +cd aspnet-core/services/admin/LINGYUN.BackendAdminApp.Host + +dotnet ef database update ``` -请使用诸如**Navicat**工具执行**ApiGateway-Init.sql** + + +### 初始化网关数据库 + +在 **2020-08-05 16:25:00** 的提交中, 已经将**apigateway-init.sql**文件内容读取并写入**DataSeeder**类型, 启动网关管理项目会自动初始化网关数据, +请确保**aspnet-core/database/apigateway-init.sql**文件存在 ### 配置RabbitMQ