Fluent Validation in C# - The Powerful Yet Easy Data Validation Tool

IAmTimCorey
IAmTimCorey
129.8 هزار بار بازدید - 6 سال پیش - Full courses:
Full courses: https://www.iamtimcorey.com/
Patreon: Patreon: IAmTimCorey
Newsletter signup:  https://signup.iamtimcorey.com/

Data validation is extremely important. The problem is that it can create a lot of excess code. Plus you end up in the position of having similar validation code throughout your application, violating the DRY principle. In this video, I am going to introduce you to Fluent Validation, a free tool to help make your validation clean, easy to create, and easy to maintain. As a bonus, it even works on models that you don't own and cannot change.

0:00 - Intro
1:00 - Demo application walk-through
2:56 - User input validation
6:04 - Where to put data validation
7:07 - Fluent Validation: adding a reference
9:19 - Implementing Fluent Validation
18:23 - More rules for validation: String length
20:00 - Validation custom error messages
22:28 - Cascading validation errors
23:29 - Input validation: allowed characters
28:44 - Fluent Validation built-in variable names: updating error messages
34:08 - CascadeMode scope
35:49 - DateTime validation
40:41 - Recap and concluding remarks
6 سال پیش در تاریخ 1397/09/19 منتشر شده است.
129,885 بـار بازدید شده
... بیشتر