Summary
We have explored various built-in validations provided by EF in this chapter. We started with the Required
field validator which was widely used, then looked into the email address validator, and then we covered other validators such as compare
, MinLength
, MaxLength
and RegularExpression
field validators. Finally, we configured these field validators for the blogging system we are building in this book. This chapter dealt only with built-in validations but never discussed how client-side validations are performed or custom validations handled. Let's explore this and a few other things in Chapter 6, Save Yourself – Hack Proof Your Entities.