Share with together

独乐乐不如众乐乐

博客园 首页 新随笔 联系 订阅 管理

一、两处json 文件修改

1)\src\*.DbMigrator\appsettings.json

2) \src\*.Web\appsettings.json

将以下信息按照实际情况修改

  "ConnectionStrings": {
    "Default": "Server=127.0.0.1;Database=BookStore;User Id=sa;Password=abc;"
  }

  

 二、使用命令安装abp并运行

dotnet tool install -g Volo.Abp.Cli

dotnet run

更多信息如下:

lenovo@DESKTOP-1ENNVD5 MINGW64 /e/Work/Study/HeatherNet.BookStore/src/HeatherNet.BookStore.DbMigrator (feature/HB001)
$ dotnet tool install -g Volo.Abp.Cli
可使用以下命令调用工具: abp
已成功安装工具“volo.abp.cli”(版本“5.1.3”)。

lenovo@DESKTOP-1ENNVD5 MINGW64 /e/Work/Study/HeatherNet.BookStore/src/HeatherNet.BookStore.DbMigrator (feature/HB001)
$ dotnet run
[22:36:43 INF] Creating initial migration...

lenovo@DESKTOP-1ENNVD5 MINGW64 /e/Work/Study/HeatherNet.BookStore/src/HeatherNet.BookStore.DbMigrator (feature/HB001)
$ [22:36:44 INF] ABP CLI (https://abp.io)
[22:36:44 INF] Version 5.1.3 (Stable)
[22:36:45 INF] Installing dotnet-ef tool...
可使用以下命令调用工具: dotnet-ef
已成功安装工具“dotnet-ef”(版本“6.0.2”)。
[22:37:30 INF] dotnet-ef tool is installed.
[22:37:38 INF] Started database migrations...
[22:37:38 INF] Migrating schema for host database...
[22:37:40 INF] Executing host database seed...
[22:37:42 INF] Successfully completed host database migrations.
[22:37:42 INF] Successfully completed all database migrations.
[22:37:42 INF] You can safely end this process...
View Code

 

posted on 2022-02-19 11:02  寒枫  阅读(69)  评论(0编辑  收藏  举报