jadisson amorim
jadisson amorim

Reputation: 1

When/How should I validate commands using the CQRS pattern

i have a question, how should i validate data input by a command? I thought about using a DTO, and after validating it, mapping it to the command. But I think this is the wrong approach. What would be the correct way?

Upvotes: 0

Views: 755

Answers (1)

Nino
Nino

Reputation: 7105

I would recomennd MediatR and FluentValidation combination for that.

Take a look at this article

Upvotes: 1

Related Questions