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(); +```