From 1eb484ce8899258dcde90e5fd27486e809767a63 Mon Sep 17 00:00:00 2001 From: dlebee <36390643+dlebee@users.noreply.github.com> Date: Wed, 11 Aug 2021 17:14:26 -0400 Subject: [PATCH] Update README.md --- README.md | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/README.md b/README.md index 4079703..2ab85bd 100644 --- a/README.md +++ b/README.md @@ -64,4 +64,17 @@ private void AddQueries(IServiceCollection services) services.AddQuery, PersonQueryHandler>(); } ``` +# Fluent Validation +We use fluent validation in all of our projects, but we don't want it to be enforced. + +If you install. ```PoweredSoft.CQRS.FluentValidation``` you can use this way of registrating your commands. + +```chsarp +// without Package. +services.AddCommand(); +services.AddTransient, EchoCommandValidator>();*/ + +// with PoweredSoft.CQRS.FluentValidation package. +services.AddCommandWithValidator(); +```