ABP step

1. Modify MyFirstProject.Web.Host and MyFirstProject.Web.Mvc library appsettings.json file is the database connection

 

2. In the field of the new layer entity

 

 

3. On the basis of the physical layer add DBContext

 

 

4. Data migration, select MyFirstProject.EntityFrameworkCore execution Update-Database update the database, it is best Add-Migration "easily play the record updates the name"

 

The application layer interfaces used to write the write DTO and business logic. After running MyFirstProject.Web.Host automatically according to these auto-generated API interfaces

 

 

 6. The application layer MyFirstProject.Web.Mvc, note that it is possible to write logic ViewModel, not just properties

Guess you like

Origin www.cnblogs.com/fzqm-lwz/p/11803388.html