This chapter includes the following topics: The Validation Results dialog enables you to view validation results and correct any invalid definitions.When the Validation Results dialog is opened, a navigation tree displays on the left and the validation messages display on the right.You can then view the generation results and the code generated for each script. Note: The scripts generated using the method described in this section may not be deployable.
These functions are also available from within the deployment process; however, you can run them as standalone functions as you define your objects to ensure that the definitions you are providing are complete and valid.In addition, you can generate and view scripts prior to deployment to ensure that there are no problems or issues.For information about using the static facades, see the Enterprise Library documentation on MSDN.The Create Validator method of the Validator Factory class allows you to obtain a reference to an appropriate Validator instance.If the object you selected contains other objects, all objects are included in the results.
For example, if you select a module for validation, the module definition and the definitions of all the objects within that module are validated.
The second case retrieves an instance of the Validator class that will check all Customer rules in the "Gold Customer" rule set.
By default, when you create a validator using the Validator Factory class, that validator will look for rules defined in configuration and in attributes in the validated classes.
These approaches are supported in this release for backwards compatibility with existing application code.
However, to take advantage of benefits available when using dependency injection, you should use the techniques described in this section.
For example, if you double-click the object name, PRODUCTS_DIM, either in the navigation tree or the Validation tab shown in Figure 19-1, the Data Object Editor for this dimension is launched. In addition to validating object definitions prior to deployment, you can also generate and view the scripts.