|
iCodeGenerator is designed to support multiple programming languages from the beggining. And for that reason is build to be simple, so that we don't have a need to learn a new complex language or syntax to build our own templates. Let's see what I mean by that...
The main parts of a Database are: The Database itself, Table and Column. Well then that's all we need to learn to write our own templates. Uhmm.. well, that is not completely true, we can also add our own custom tags. Lets begin. DATABASE Tags: DATABASE.NAME DATABASE.NAME: Returns as the name of the selected database. TABLE Tags: TABLE.NAME, TABLE.COLUMNS TABLE.NAME Returns the name of the selected table. TABLE.COLUMNS Returns an array of the columns of the selected table. Attributes PRIMARY, NOPRIMARY,ALL(Default). COLUMN This tags should be placed between the TABLE.COLUMNS tag. Tags: COLUMN.NAME, COLUMN.TYPE, COLUMN.LENGTH, COLUMN.DEFAULT COLUMN.NAME Returns the name of the column. COLUMN.TYPE Returns the type of the column. COLUMN.LENGTH Returns the lenght of the column. COLUMN.DEFAULT Returns the default value of the column. CUSTOM TAGS This tags return a custom value that you control in a properties sections.
Comment on this article
You must login to leave comments...
Other Visitors Comments
There are no comments currently....
|