LLBLGen Pro contains a deep, multi-stage project validation system. In the following sections, the various stages are explained as well as the UI elements you can use to solve errors and warnings.
The following validation stages are performed in LLBLGen Pro:
The project validation stages
If each stage is completed successfully (i.e. no error was detected), and if ordered to do so, the validation moves to the next stage. The stages are described below
Not every stage is executed every time. The following list shows when which stages are executed. Stage 1 and 2 are always executed together.
The following events trigger the execution of validation phases 1 and 2:
The following events trigger the execution of the complete set of validation stages from start to finish:
Important |
Before you generate a Database Schema Create script or a Database Schema Update script, it's highly recommended you do a full validation using all three stages, to make sure the relational model data reflects your model. Do this by selecting 'Validate and Adjust Relational Model Data' from the Project menu in the main menu. |
When an error or warning is detected by one of the validation stages, it throws it upwards, and it ends up in the Errors & Warnings pane, which is a pane docked at the bottom of the LLBLGen Pro designer. The error or warning is also logged as text in the Application Output pane which is also docked at the bottom of the LLBLGen Pro designer.
LLBLGen Pro tries to attach to each warning or error one or more suggestions or actions. You can view the suggestions or actions for each error by expanding the error in the Errors & Warnings pane. If the error or warning has one or more suggestions, they describe what you can do to solve the error. If the error or warning has one or more action choices you can take, each of them will contain a link you can click to either go to the particular editor and load the element and correct the error manually, or if applicable, you can click the link to correct the error directly. It depends on the error which corrections/actions are given.
It can sometimes be convenient to ignore a given warning as it would otherwise clutter the rest of the warnings you want to pay attention to. The designer makes it possible to ignore warnings (and unignore them) in the Errors & Warnings pane. Each warning has an ID, which is a simple code: ABxxxx. AB are two alphanumeric characters which represent the origin of the warning and xxxx is the number of the warning.
The following origin codes have been defined:
The Error & Warnings pane has two warning related buttons. One, which is showing two small warning icons, is used to toggle whether the warnings with the codes as the ones selected are hidden / not hidden. The other button shows a slightly dimmed warning icon, which is a toggle button, and when clicked, it is 'active', and filters dynamically the list of correctable messages: if a warning has a code which is set to be 'ignored', it's filtered out. If this button is inactive, all warnings are shown, regardless of whether the warnings have codes which are marked to be ignored.
Warnings are hidden / shown using the button to show / hide ignored warnings at the left of the Errors & Warnings pane. Selecting one or more warnings and clicking the button will toggle the ignore flag for the warning number of the selected warning. This is done at the project level. The codes of ignored warnings are stored in the project file and are applied again after the project has been successfully reloaded.