dimanche 22 novembre 2020

what's the point of query/command objects in CQRS?

What is the point of having an additional transfer object?

Why is

cookingRecipeCommandHandler.Handle(new CreateCookingRecipeCommand(...)); 

better than

cookingRecipeHandler.CreateCookingRecipe(...);

I'm having a hard time to understand what the advantages of these additional objects are supposed to be.

Aucun commentaire:

Enregistrer un commentaire