• Abp VNext 5.1.3 快速實現數據庫初始化


    一、两处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
  • 相关阅读:
    微信 ios端config配置失败 android端正常
    vscode离线安装插件
    win7中vscode会黑屏或者终端空白,无法输入
    vue中使用svg图片
    a.download下载文件 ---跨域问题
    background 背景图片 --css3
    box-shadow
    兄弟伪类
    canvas画时钟
    轮播图--使用原生js的轮播图
  • 原文地址:https://www.cnblogs.com/autumn/p/15912106.html
Copyright © 2020-2023  润新知