O'Reilly logo

ASP.NET Dynamic Data Unleashed by Oleg Sych

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required