ABP Development Notes 4 - initialization run

Click here to enter the ABP Development Notes directory 

Compile Solution

Rebuild Solution, sure to generate success.

Connect to the database

Open JD.CRS.Web.Host / appsettings.json, modify the database connection settings ConnectionStrings.

Open JD.CRS.Web.Host / appsettings.json, do the same modifications.

   

Database migration

method one

JD.CRS.Web.Mvc project set to start

Open the Tools / NuGet Package Manager / Package Manager Console

The default project selection JD.CRS.EntityFrameworkCore

Sequentially executing the following command to
the Add-Migration 'the Initial'
the Update-Database

 

Method Two

JD.CRS.Migrator project set to start

F5 to run

Enter Y when asked console, press Enter

 

Run the application

Web.Host

JD.CRS.Web.Host project set to start

F5 to run

Swagger display interface that is run successfully WebAPI 

 

 

Web.MVC

JD.CRS.Web.Mvc project set to start

F5 to run

Login account admin / 123qwe

This display screen that is run successfully WebMVC

 

Guess you like

Origin www.cnblogs.com/IT-Evan/p/ABP4.html