table.vm
来自「一个数据访问层Torque3.1的生成器的源代码」· VM 代码 · 共 38 行
VM
38 行
<subsection name="$table.Name"> <p> $!table.Description </p> <table> <tr> <th>Name</th> <th>Type</th> <th>Size</th> <th>Default</th> <th>JavaName</th> <th>PK</th> <th>FK</th> <th>not null</th> <th>Description</th> </tr> #foreach ($col in $table.Columns) <tr> <td>$col.Name</td> <td>$col.Type</td> <td>$col.printSize()</td> #if ($col.DefaultValue && !$col.DefaultValue.equalsIgnoreCase("NULL") ) <td>$escape.getText($col.DefaultValue)</td> #else <td></td> #end <td>$col.JavaName</td> <td>#if ($col.isPrimaryKey()==true)X#end</td> <td>#if ($col.isForeignKey()==true)X#end</td> <td>#if ($col.isNotNull()==true)X#end</td> <td>$!col.Description</td> </tr> #end </table></subsection>
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?