The Validation Application Block is part of the Microsoft Enterprise Library. This block makes it easy for you to add common validation to your application's classes programatically, using annotations, or via configuration. In this course, we will cover the basics of the using the block to validate entire classes quickly and easily. We will also look at ways to make validation completely configurable, as well as how to create and use custom validators. If you are constantly writing common validation code, and feel like there has to be a better way, this course will help you get there.
Overview and Configuration Hi, this is John Sonmez from Pluralsight and in this module we are going to be going over the validation application block in the enterprise library. Now the validation application block is a very useful block that we can use to perform all kinds of validation on various classes in our application. In this module we are going to go over the basics of the block itself, talk about how the block works, what the block can do for you and see how the workflow works of going through the block and how you can figure that block. Then we're going to look at some of the kinds of validation you can do with the block and the types of things you can validate using the block. Then finally we'll go through some configuration and we'll see how we can configure some rule sets in the block through the configuration tool.
Simple Validation Hi. This is John Sonmez from Pluralsight and in this module we are going to be looking at some simple validation scenarios using the validation application block from the enterprise library. We're going to start off by going through just a simple scenario of setting up a class that we want to validate and setting up some validation for that. And we'll see how to do that using annotations in our class itself or to use rules in our configuration like we had looked at in the last module. Then we're going to go through some various ways that we can configure validation and set up different types of validating scenarios. So we're going to look at formatting some messages in the validation because that's important to be able to get back a good validation message. And we're going to see how we can validate objects within our class and collections. And then we'll take a look at using composites to combine some validation rules together and make more complex validation schemes. And then finally we'll look at using a self validation in order to create a custom validation within our class or within our type in order to validate multiple things that are going on in that class or to provide a little bit more control over how we validate an entire class.
Advanced Validation Hi, this is John Sonmez from Pluralsight. And in this module, we are going over some of the more advanced applications of the validation application block from the Enterprise library. We're going to see how we can actually use some data annotations that are in. NET 4. 0 and 3. 5 inside of the validation block to perform our validations, so we can use some code that maybe already existed and was already utilizing that other form of validation and still utilizing the block. We're also going to see how we can prevent our classes from having to have annotations, but still be able to use the annotations using metadata classes. We'll then look at using rule sets and how we can define which rule sets get loaded, or even what kind of validator that we use, whether we use configuration- or attribute-based validation. And up to this point in the course, we have covered using the validation block by using validators for validating a whole object. But we'll look at how we can actually create individual validators and validate pieces of data individually using those validators instead of having to validate a whole object. And then finally we'll wrap this up by looking at doing some validation in WCF and implementing a custom validator of our own.