At some stage, the capabilities of the existing templates might seem insufficient and you may want to create new templates (based on the blank template) or to extend the existing ones (for that purpose, you can use the Copy-to-model option when adding a template or make the currently added template refer to a template in the resources). Custom templates can be easily made shared using the "make shared" option. This allows using custom templates in other models. Shared templates are displayed in the Custom category and are stored in the C:\Program Files\Common Files\Devart\EntityDeveloper\Shared Templates folder.
|
Templates are created and edited with convenient editor, which provides context-sensitive code completion, error check, syntax highlighting and other features to speed up your work. All errors and warnings are automatically displayed in the Error List window. The Error List displays an error or warning message and the error location. You can easily navigate to the line that caused the error by double-clicking the error in the Error List window. Thus you may find and fix template errors quickly and conveniently.
|
In custom templates you can use the following additional parameters with the PushOutputRedirection function that can be called inside the template code:
|
At certain stage of development, the existing properties of model objects might not be sufficient. Using Entity Developer you can extend the property lists for objects in the model. These extended properties are either declared in the template, or defined in the model, and then used in code generation. For example, you can add the Generate property to every class and then exclude some classes from generated code by changing the value of this property in the designer.
|