...
To set up an enumerated property, you need to define a type that only allows the values you want. You can do this by creating an enumeration. Start by moving to the end of the template and start typing <script which will show you an IntelliPrompt and allow you to autocomplete the script block.
Info |
---|
Tip: If you press the tab button or click on the script IntelliPrompt (or any IntelliPrompt) which is shown in the above image, the action will be autocompleted. In this case the script block will be created with an ending script tag. |
...
Now you can use a CodeSmith Generator Property directive to define a property that makes use of the new type:
...
So far, so good. But there's still one thing missing: a connection to the database. We'll tackle that next.
Info |
---|
Tip: Don't forget to save your template by clicking on the Save icon or selecting File -> Save from the menu located at the top of the Generator Template Editor. |
...