First, I would like to clarify that the video tutorial and source code are not my original works.
I have split the project and written some explanations.
The video tutorial can be found at https://study.163.com/course/courseMain.htm?courseId=1005955006
Original author
I am currently learning ASP.NET Core and found this author’s video tutorial to be very helpful, so I followed the tutorial and decided to write an article to introduce it and analyze the project.
The project source code can be downloaded from
Link: https://pan.baidu.com/s/11sg-6IUKad35Q2RKl-DKXg
Extraction code: f2ix
Copy this content and open the Baidu Netdisk mobile App for easier operation.
If the link is broken, please leave your email in the comments.
Format
Username # Email Address
Project Interface
The project uses .NET Core 2.1, Entity Framework Core, and SQL Server,
and implements CRUD operations on the database, article management, news category management, comments management, backend administration, MVC, etc.
Project File Description
I have divided the project into several parts.
Backend Static Page Some JS and CSS files are included. Since the project focuses on backend design, algorithms, and frameworks, I have provided static files and page styles for use during development.
NewsPublish.Web-Service Design.zip is for the first phase of design, which does not include frontend design but implements the model, functional design, etc.
NewsPublish.rar is the final design result of the project.
Database Design.txt contains the code to generate the database.
Usage Instructions
First, copy the code (all) in Database Design.txt and execute it in the database manager to generate the database. To avoid failure, please execute it again.
The Db.cs file in NewsPublish.Service contains the database access context; please modify the connection string in line 17.
Project Analysis -- Service Design
After extracting NewsPublish.Web-Service Design.zip , open the solution.
There are three projects:
NewsPublish.Model
NewsPublish.Services
NewsPublish.Web
NewsPublish.Model is a class library that designs database entities, database models, and functional data models.
Among them, ResponseModel.cs is used globally and is designed to be the return type, unifying the return types of methods.
NewsPublish.Services class library implements all the functionalities of the website.
NewsPublish.Web implements website access control and frontend functionalities.
In the Areas directory, there are sub-regions that implement the backend management pages.
文章评论