Table List

Name: ZeraSystems.CodeNanite.TableList

Expansion Label: CS_TABLE_LIST

Nanite Label/Expansion: TableList

Usage: [%CS_TABLE_LIST%]

Description: Triggers a loop that cycles through the tables listed under the Global Schema. Code is then generated for every table.

This is applicable at the folder/file level as well as the code level. 

Folder Level: When you use the expansion label - [%CS_TABLE_LIST%] as the label for a Node, you can generate folders having the name of the table(s) as you cycle through the list. For example, the below shows the [%CS_TABLE_LIST%] expansion label used as the label of the node (of folder) under the "temp" node.

This setup will cause the following folders to be created under the temp folder during code generation:

And likewise, filenames with the same name as the folder plus the suffix ".cs" will also be created:

because the expansion label was used as part of a filename.

 

 

 

 

 

© 2018 CodeStencil - Zera Systems Inc. All Rights Reserved.

No items in cart