|
Every Column defined in a Database Repository has a Validations tab, where you can add validations that must be applied to it in generated applications.
Different Validators are available for different validation types. You can choose from the following Validators:
List Validator
Range Validator
Regular Expression Validator
Required Field Validator
Web Mask Validator

Validations defined in the Validations tab are implemented in two application layers:
 | The NHibernate Templates implement Validations in the business object layer, by adding validation methods to the POCO Class to enforce validation rules. |
 | The ASP.NET 2.0 Templates implement Validations in the user interface, by adding standard ASP.NET 2.0 Validator elements to the aspx source code. |
Steps to add a Validation:
| 1. | Select the type of Validation needed from the dropdown list. |
| 3. | Type a meaningful name for the validation. |
| 4. | Type an error message for the Validation. Make sure the message is clear for application users, as it will be displayed in the user interface if the validation fails. |
A Validation can be removed by clicking the Remove button in its frame.
|