This is the implementation of Clean Architecture by Steve "Ardalis" Smith. Here CRUD operations on a Student Entity is performed. The complete tutorial is provided at - Implement Ardalis Clean Architecture
- ASP.NET Core 8.0 version.
- CRUD Operations on ASP.NET Core MVC.
- MVC Views for the UI.
- Number based Paging implementation for razor view.
- Authentication and Authorization by Identity.
- Login, Logout, Register features in Razor Pages.
- Unit, Integration and Functional Tests.
- Simply Download the run the repository. Then go to
/Student/Read
uri to start with the CRUD operations. - For Identity you have to perform migrations. This will create Identity database.
Go to the directory of "Web" project where their is
Clean.Architecture.Web.csproj
. From here run the migration commands.
dotnet ef migrations add MIGRATIONNAME -c AppIdentityDbContext -p ../Clean.Architecture.Infrastructure/Clean.Architecture.Infrastructure.csproj -s Clean.Architecture.Web.csproj -o Data/Migrations
dotnet ef database update --context AppIdentityDbContext
You can make any action method of StudentController.cs
as secured by adding [Authorize]
attribute over it.
Don't forget to view the connection string of Identity Database given on appsettings.json
file on "Web" project.
Here we can perform CRUD Operations on a Student Entity.
Your support of every $5 will be a great reward for me to carry on my work. Thank you !