Chapter 8. Implementing Entity Validation

In This Chapter

Validation Framework

Customizing Entity Framework Code Generation

Automated Testing

Declarative Validation

Imperative Validation

Validating Multiple Rules

Validating Entity State Changes

Validation of entities is one of the key aspects of business logic. The .NET Framework introduced a new validation framework in Service Pack 1 of version 3.5, at the same time the first version of Dynamic Data was released. This framework is implemented in the System.ComponentModel.DataAnnotations namespace and contains a set of attributes and classes for validating objects and their properties.

The Data Annotations namespace is defined in a separate assembly called System.ComponentModel.DataAnnotations ...

Get ASP.NET Dynamic Data Unleashed now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.