Skip to content

Commit

Permalink
Merge pull request #12 from Tim-Maes/Tim-Maes-patch-7
Browse files Browse the repository at this point in the history
Update README.md
  • Loading branch information
Tim-Maes committed Mar 4, 2024
2 parents 697ee8c + 9788c77 commit 7b3bba8
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,9 @@ Remove the example queries/mutation/repositories etc and implement your own.

In the core layer we have a custom lightweight handler implementation. These are `Handler<TOutput>` for querying data without parameters,
and `Handler<TInput, TOutput>` for querying or mutating data with parameters.
Handler is a abstract class so we can leverage the validation method leveraging FluentValidation. You still need to define a interface for DI purpose.
Handler is a abstract class so we can leverage the validation method leveraging FluentValidation.

You still need to define a interface for dependency injection, the handlers are automatically registered as scoped.

Since we don't use `AutoMapper` to map input types to output types, we just write an extension method `ToOutput()` that maps `TInput` to `ToOutput()`.

Expand Down

0 comments on commit 7b3bba8

Please sign in to comment.