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
646
175
1 week ago 00:20:54 1
4 best dessert recipes in cups
1 week ago 00:03:53 1
Silverchair - Anthem for the Year 2000 (Official Video)
2 weeks ago 00:04:03 1
1000W in Your Pocket: The Corsair SF1000L—The Tiny Beast That Powers Goliaths (Quietly) - YouTube
2 weeks ago 00:00:19 1
Why Do We Yawn? It’s Not What You Think! #Yawn
2 weeks ago 00:03:48 10
Lee Min Ho - Innisfree Interactive micro film “First Love“ - 1st ending (Raw)