Lesson 11: Build Your Own Validation Using the [CustomValidation] Attribute
In this lesson you create your validation class and connect it to the [CustomValidation] attribute to verify data is correct. You also add your own ErrorMessage property to the class.
Content
Lesson Objectives 00:00
The [CustomValidation] Attribute 00:22
DEMO: Check for a Valid Workday Using the [CustomValidation] Attribute 00:45
DEMO: Create a Customer Class 02:02
DEMO: Pass in a Custom Error Message to the [CustomValidation] Attribute 03:32
Lesson Summary 05:09
Useful Links
Samples and hands-on labs for this course: https://www.pdsa.com/YouTube
The [CustomValidation] Attribute: https://learn.microsoft.com/en-us/dot...
#dataannotation #validation #csharp #development #programming #dotnet #dotnetcore #dotnet6 #dotnet #dotnet8 #pauldsheriff #pluralsight #youtube
Paul.About()
Hello, my name is Paul D. Sheriff and I have a passion for teaching. I have been training developers for over 35 years through books, videos, article, blog posts, and international conferences and user groups.
Paul.Contact()
Website: https://www.pdsa.com
Email: [email protected]
LinkedIn: / paulsheriff
Blog: https://blogs.pdsa.com/
Pluralsight: https://app.pluralsight.com/profile/a...
YouTube Channel: @pauldsheriff
Watch video Lesson 11: Build Your Own Validation Using the [CustomValidation] Attribute online without registration, duration hours minute second in high quality. This video was added by user Paul D. Sheriff 09 February 2024, don't forget to share it with your friends and acquaintances, it has been viewed on our site 130 once and liked it 5 people.