ABP sail

ABP stands for ASP.NET Boilerplate (model), the official website https://aspnetboilerplate.com . Asp. Net Boilerplate is a generic application framework designed for modern Web applications. It uses the already familiar tools and implement best practices around these tools provide you with the SOLID (single function, opening and closing the principle of replacing Richter, interface isolation and dependency inversion) development experience.
Mainly has the following characteristics:

  • Layered architecture
    provides a layered architecture model based on domain-driven design.
  • The modular design
    designed to be modular and scalable. Provide the infrastructure to build their own modules.
  • Multi-tenant
    SaaS applications become simpler! Integrated multi-tenant from the database to UI.
  • Domain Driven Design
    based on DDD to design and develop. SOLID provide for your application (a single function, opening and closing the principle of replacing Richter, interface isolation and dependency inversion) model.
  • Good documentation
    complete documentation and quick start tutorial.
  • Free and open source
    on GitHub open source (MIT license), the community is very active.

ABP also divided into several versions, such as stable Community Edition, Enterprise Edition charges, as well as based on Asp.net core of the latest version of ABP vNext. The next article in this series focused on ABP vNext terms.

https://cn.abp.io is a community of enthusiasts to maintain a Web site, you can start a project quickly through this website.

5833359-2dbab77e3bd3a9e6.png
Get Started

Incidentally, the latest VS2019 and Net Core 2.2 Today I installed the new SDK.


5833359-d09b10cc82a2c7ee.png
Initialization seven projects

First run, an error

System.Data.SqlClient.SqlException:“A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections. (provider: Named Pipes Provider, error: 40 - Could not open a connection to SQL Server)”

It is estimated that the database connection errors, modify the connection string appsettings.json under MVCDemo1.Web in, then run, and an error

System.Data.SqlClient.SqlException: "Object Name 'AbpSettings' is invalid."

It seems that there are no preset database table, but fortunately, before learned some knowledge of EF. Package Manager Console to run commands update-database, first switch the main project to MVCDemo1.EntityFrameworkCore.DbMigrations


5833359-c5e5456597f78102.png
Package Management Console

View database tables again


5833359-4c1f564062e8c47b.png
Database Table

These tables basically asp.net identity of the related tables.

Run again, no problem.
Start account login, account default password is admin, 1q2w3E *


To quote layout diagram points again at the entire solution through a project


5833359-0a1282003b24f82f.jpg
ABP project reference chart .jpg

Domain layer + data field is level field events where the
application layer is where the level of business operations

Information Reference:
ASP.NET MVC template Core
how to migrate EF Code

Guess you like

Origin blog.csdn.net/weixin_33937913/article/details/90964947