This website utilizes cookies to enhance user experience. Kindly provide your consent for cookie usage. Accept
Confidently Build Production-Ready CRUD Using Clean Architecture

25 February, 2024

Introduction:
Unlock the full potential of ASP.NET Core Web API development with the 'Clean Architecture CRUD Bundle,' which features three meticulously crafted projects, each exemplifying industry-best practices.

The primary objective of the project is to facilitate developers in their learning process, while also serving as a foundational resource for their transition from personal to professional projects. Developers can readily refactor code and adhere to the established architecture.

Complete CRUD in ASP.NET Core Web API with Repository Pattern and EF Core in Clean Architecture

Complete CRUD in ASP.NET Core Web API with Repository Pattern, Dapper, ADO.NET - Raw SQL in Clean Architecture

Complete CRUD in ASP.NET Core Web API with Repository Pattern, Dapper, ADO.NET - Stored Procedure in Clean Architecture

The titles above describe the projects themselves. Each project has its individual description page. I believe these projects are suitable for beginners to advanced levels who want to develop an ASP.NET Core Web API project with Clean architecture. With over 10 years of experience, I ensure that the projects follow the best coding standards.

I keep my controllers very thin, resulting in a neat and clean appearance. Implemented API versioning with CORS in place.The Global Error Handling middleware has been implemented nicely. The MediatR with CQRS has been implemented in a very clean way. I implemented Logging Source Generator for High-Performance Logging and Structured Logging In ASP.NET Core With Serilog. In the API layer, I introduce caching. You can use Ardalis Guard Clauses or ErrorOr, but in these projects, I implement custom guard clauses that are fully customizable. Dependency injection is utilized throughout.

We have robust Architecture tests for the full Clean architecture and unit tests. Unit tests cover 100% test coverage, including the controller and service layers. You can learn how to write architecture and unit tests effectively by examining the project. I have written over 60 unit tests, which may seem extensive, but it's because of the approach I take, which makes learning and understanding easy.

Image

The "Complete CRUD in ASP.NET Core Web API with Repository Pattern and EF Core in Clean Architecture" project also includes an audit trail. Here, we have EF Core code-first migration.

Image

"Complete CRUD in ASP.NET Core Web API with Repository Pattern, Dapper, ADO.NET - Raw SQL in Clean Architecture" uses Dapper and ADO.NET to demonstrate the proper way to write ADO.NET in an API application. Here, I also introduce Sql Data Adapter and Sql Data Reader. This project is also CRUD, but it implements more than 12 methods.

Image

The same applies to "Complete CRUD in ASP.NET Core Web API with Repository Pattern, Dapper, ADO.NET - Stored Procedure in Clean Architecture," but here, I use Stored Procedure usage.

With the introduction of MsBuild, we now have the capability to manage all property settings and more within a single file, which can be placed in the root directory of our solution alongside our solution file. This file ( Directory.Build.props ) will automatically apply to all projects defined in the solution.

Dependency management is a fundamental aspect of NuGet. While managing dependencies for a single project may be straightforward, it becomes increasingly challenging as multi-project solutions grow in size and complexity. In scenarios where common dependencies are shared across numerous projects, leveraging NuGet's centralized package management features allows for streamlined management from a single location. I achieve this through a centralized NuGet package system using Directory.Packages.props.

Image

So, if you purchase the "Clean Architecture CRUD Bundle," you will receive all three project source codes along with the database schema of stored procedures. Each project comes with its guideline process file on how to run it. Alternatively, individual purchases are also available.

The discounted offer will end on 10th March 2024. Thank you!


About the Blogs

As a dedicated .NET developer, I maintain a Patreon account where I share exclusive content related to .NET development. There, you will also gain access to the codebase of this blog post. By becoming a Patreon member, you will have the opportunity to explore and learn from my projects firsthand.

If you have found my contributions helpful in any way, I kindly ask you to consider becoming a Patreon supporter. Your support enables me to continue producing high-quality content, empowering developers like yourself to enhance their skills and stay up to date with the latest developments in the .NET ecosystem. Thank you for considering joining my Patreon community!


Recent Posts

Confidently Build Production-Ready CRUD Using N-Layer Architecture

25 February, 2024

Confidently Build Production-Ready CRUD Using Clean Architecture

25 February, 2024


Share This Article On:
An error has occurred. This application may no longer respond until reloaded. Reload 🗙