This project has moved. For the latest updates, please go here.

Data Validation in Entity Controllers

Sep 20, 2014 at 11:07 AM

I am using Error and this[] properties of entity partial classes (e.g., book.cs and person.cs) to perform validations. If validation fails, the relevant control box boundaries become red and command buttons get disabled.

I would like to get the same result when validation is done in the entity controllers (e.g., BookController and PersonController). This is useful when checking for duplicate records or validating against data in other entities.

I would greatly appreciate your suggestions.

Many thanks.