Home > Software engineering >  .NET Use Dto models in Infrastructure
.NET Use Dto models in Infrastructure

Time:09-27

i try do app with clean architecture (with mediator, fluent validation). I have services (interfaces) in application project and implementation in infrastructure project. Is it ok use in the services as parameter the Dto objects? I save dto in application project. Or right way is use entities in domain project?

Thank you :)

CodePudding user response:

It's better to use DTOs from the application layer in the infrastructure layer.

  • Related