Clean Architecture in .NET Applications Using CQRS and MediatR

preview_player
Показать описание

In this video, I will talk about Clean Architecture in .NET, its implementation, and its advantages.
Clean Architecture is a pattern aimed at building applications that we can maintain, scale, and test easily.
It achieves this by separating the application into different layers that have distinct responsibilities:
Domain Layer – that represents the application’s core business rules and entities. This is the innermost layer and we should mostly avoid any external dependencies.
Then, The application layer sits just outside the domain layer and acts as a middleman between the domain layer and other layers. In other words, it contains the use cases of the application and we expose the core business rules of the domain layer through the application layer. This layer depends just on the domain layer.
Next, we have an Infrastructure Layer – where we implement all the external services like databases, file storage, emails, etc. It contains the implementations of the interfaces defined in the domain layer.
Finally, The presentation layer handles the user interactions and fetches data to the user interface.

LINKS MENTIONED IN THE VIDEO

FOLLOW US ON SOCIAL MEDIA!
Рекомендации по теме
Комментарии
Автор

Thank you all for watching and for your support.

CodeMaze
Автор

I really like your videos
ToDoItemQuery should it be record or record struct instead of class?
Should it be sealed and the handler too?

Tamer_Ali
Автор

In Application layer you are using CQRS by Repository injection, but how to handle transaction if Command having multiple repositories

vinothdharmaraj
Автор

Please provide git link as i want to learn CQRS and Onion architecture and it will be so helpful if i have access to the code so that i can check it immediately when i go wrong anywhere i have watched CQRS video also it is good for the beginner and not complex.

sniperharshgaming