Summary

Let's get a quick summary of the contents of this chapter.

We'll cover the following...

Key takeaways

  1. Constraints are logical conditions on the data of an application. The simplest and most important types of constraints are property constraints and object-level constraints.

  2. Constraints should be defined in the model classes of an MVC application since they are part of their business semantics.

  3. Constraints should be checked in various places of an ...