Make Your Business Rules Cleaner With Fluent Validation
๐ Support me on Patreon to access the source code:
Fluent Validation is a library for easily implementing rich validation rules. It also has support for asynchronous validation, which means you can test your business rules as part of your validation pipeline. I will show you how to validate a business rule in your validator by asynchronously calling the database.
Join my weekly .NET newsletter:
Read my Blog here:
Subscribe for more:
@MilanJovanovicTech
Chapters
0:00 Implementing the Create Customer use case
3:25 Enforcing email uniqueness business rule
5:32 Adding FluentValidation and async validation
8:22 Registering FluentValidation with DI
9:03 Creating an endpoint for the use case
10:36 Running validation with IValidator
13:19 Enforcing unique constraints in the database
1 view
534
151
8 years ago 00:03:49 1.8K
Bruce Lee - Make Your Move
10 years ago 00:07:37 51
Make your own tubeless
11 years ago 00:03:18 262
I CAN MAKE YOUR | TRAP | CHIBI
8 years ago 00:17:17 571
Make your English more natural; synonyms like & dislike