Clean Architecture With .NET 6 And CQRS | Project Setup

24885
157
1132
11.08.2022
Milan Jovanović

Milan Jovanović

121717
7020
15
22.10.2017
RS
Описание видео:

You've heard about Clean Architecture before? In this video, I'm going to show you how to set up the Clean Architecture using .NET 6 and CQRS with MediatR. Support me on Patreon to access the source code: 🤍🤍patreon.com/milanjovanovic Join my weekly .NET newsletter: 🤍🤍milanjovanovic.tech Subscribe for more: 🤍🤍youtube.com/c/MilanJovanovicTech?sub_confirmation=1 Chapters 0:00 Introduction 0:19 What is the Clean Architecture? 2:51 Domain layer 5:01 Application layer 7:26 Infrastructure layer 8:25 Presentation layer 12:02 Outro

Кадры из видео
Clean Architecture With .NET 6 And CQRS | Project Setup
Clean Architecture With .NET 6 And CQRS | Project Setup
Clean Architecture With .NET 6 And CQRS | Project Setup
Clean Architecture With .NET 6 And CQRS | Project Setup
Тэги из видео
Комментарии пользователей:
Sudhir Patil
2022-09-25 04:59:46

This introduction part is great. KUDOS TO YOU...
Where is the next video for implementation part ???

DasDreaD666
2022-09-20 11:32:09

What if database is responsible for generating Id for newly created resources? Do we completely remove the parent Entity class? How does it look in DD approach?

Daniel Madrid
2022-09-16 01:10:45

Nice, I use Node JS thought but this content its pure gold, not many channels have videos on how to implement clean arch. Keep rocking!

LOKO - Muklis Fatoni
2022-09-13 04:50:57

Hi Milan,
I'm still a beginner, trying to follow your code. however at tLk4pZZtiDY&t=04m15s 04:15 min I didn't find the NotFoundException class could you please give me a hint.

impressIAS
2022-09-08 20:26:31

Thank you Chris. I really appreciate it and that was exactly what I was trying to do. No fuss and helping people get on with what they need

Rico Marcelo
2022-09-07 06:24:02

thanks! subbed.

Piotr Zwara
2022-09-04 14:12:07

How can I create library project for web Controllers? Last version of nuget Microsoft.AspNetCore.Mvc is outdated (2.2.0 version). If I use in csproj sdk=Microsoft.NET.Sdk.Web, during build it asks for Main method as an entry point. Is there any way to create library project with Microsoft.AspNetCore.Mvc namespace available?

fieryscorpion
2022-09-03 21:33:13

Great video!
Can you please please show how to setup Serilog logging in this project structure throughout all the projects?

Fahimeh Barzegar
2022-09-02 18:06:17

I used to onion architecture before , and I realize that both are the same, I confused, would you explain the different please?

swiftybathero
2022-08-31 22:32:10

Hi Milan,

I like the "trick" of separating the Presentation layer from the composition root. But there are also two things that I'm not so sure about:

1. Don't you think, that persistence-related abstractions, like IRepository and IUnitOfWork should be placed in the Application layer, instead of the Domain layer?
I think that the Domain layer shouldn't know anything about the persistence, even if it's only a contract. In fact, the Domain layer doesn't have to know if it's persisted at all :)

2. Some persistence logic in your QueryHandler in the Application layer - shouldn't we move it to the Infrastructure layer?
Persistence logic is in fact something related to external dependencies, so you're breaking the idea of separating the Application layer exposing interfaces from the Infrastructure layer containing implementations related to all external concerns.

Also, I would consider making your Application layer more explicit and using Result monads instead of relying on middleware from the Web project to catch everything and translate it to a proper response code. This is not entirely bad, but at least opinionated in the community : )

Darko Gelevski
2022-08-31 12:02:51

Place the handlers and commands/queries in same clases , less classes more clean code

Cursix
2022-08-30 06:51:43

Good video

diego moreno
2022-08-29 11:44:23

Excellent tip on the controllers Assembly. Good stuff!

Ahmed Ayman
2022-08-27 22:14:09

The video is great, the core concepts explaination is fantastic, but unfortunately the project is big and I guess it has some unneeded parts which add extra complexity, like why are the parts made as seperate projects with bunch of folders inside them and not just a direct folder or project containing the code itself?

Ricardo Maroquio
2022-08-27 02:20:27

Hello, buddy. Congrats for the video! Any special reason to use .NET Core 5 instead of 6? Or, are you using 6 with a startup class?

MINH TU CHUNG
2022-08-25 06:07:54

Can you help to run the debugger through all of these layers so developers can understand how powerful is it? Thanks

Adriano Ricardo Digiere
2022-08-24 17:29:04

Great video Milan! Thank you so much for sharing.

Ertuğrul Kayabaşı
2022-08-24 09:29:55

I lke it :) Thank you

Subash Barik
2022-08-23 04:19:29

Great video , please keep posting videos like this.

Что ищут прямо сейчас
Pedal becky кот меланист рыба горячего копчения Моряковка горин арбузы gazdaság archeage гайд для новичков как познакомиться с девушкой dzungla cover dance wild show мы открываем бизнес amber heard abuse Гугл kalushi сюжетный ролик райли люди в италии ui design figma
Похожие видео
31.01.2021
How to structure a .NET Solution (project separation & architecture)

How to structure a .NET Solution (project separation & architecture)

26.03.2021
Intro to MediatR - Implementing CQRS and Mediator Patterns

Intro to MediatR - Implementing CQRS and Mediator Patterns

04.08.2022
Stop using the HttpClient the wrong way in .NET

Stop using the HttpClient the wrong way in .NET

01.12.2019
Clean ASP.NET Core API using MediatR and CQRS | Setup

Clean ASP.NET Core API using MediatR and CQRS | Setup

20.02.2022
How to implement Clean Architecture in Node.js (and why it's important)

How to implement Clean Architecture in Node.js (and why it's important)

05.09.2022
4 Ways To Do Email Uniqueness Check In Domain Layer | DDD, Clean Architecture, .NET 6

4 Ways To Do Email Uniqueness Check In Domain Layer | DDD, Clean Architecture, .NET 6

01.08.2022
The 2 MediatR features people don't know about but should

The 2 MediatR features people don't know about but should

23.08.2022
What Is An Entity? | Domain-Driven Design, Clean Architecture, .NET 6

What Is An Entity? | Domain-Driven Design, Clean Architecture, .NET 6

12.09.2022
CQRS Doesn't Have To Be Complicated | Clean Architecture, .NET 6

CQRS Doesn't Have To Be Complicated | Clean Architecture, .NET 6

03.09.2022
Aggregate Root Design 101 | DDD, Clean Architecture, .NET 6

Aggregate Root Design 101 | DDD, Clean Architecture, .NET 6

26.07.2022
Building a microservice architecture with ASP.NET Core - Gill Cleeren - NDC London 2022

Building a microservice architecture with ASP.NET Core - Gill Cleeren - NDC London 2022

08.08.2022
The Better Way to Configure Entity Framework Core | EF Setup

The Better Way to Configure Entity Framework Core | EF Setup

26.01.2018
C# Async / Await - Make your app more responsive and faster with asynchronous programming

C# Async / Await - Make your app more responsive and faster with asynchronous programming

17.09.2021
Implementing CQRS Pattern with Microservices | What is CQRS Pattern? | DotNetTricks

Implementing CQRS Pattern with Microservices | What is CQRS Pattern? | DotNetTricks

15.06.2021
Clean Architecture Example & Breakdown - Do I use it?

Clean Architecture Example & Breakdown - Do I use it?

16.11.2021
Clean Architecture with ASP.NET Core 6

Clean Architecture with ASP.NET Core 6

22.08.2022
How to Use Domain-Driven Design in Clean Architecture Domain Layer | .NET 6, DDD

How to Use Domain-Driven Design in Clean Architecture Domain Layer | .NET 6, DDD