columns.vm

来自「一个数据访问层Torque3.1的生成器的源代码」· VM 代码 · 共 19 行

VM
19
字号
#foreach ($col in $table.Columns)    #set ( $type = $dbprops.get($col.Type) )    #if ($type == "INT" || $type == "TEXT")      #set ( $size = "" )    #else         #set ( $size = $col.printSize() )    #end    #set ( $default = $col.DefaultSetting )    #set ( $nullString = $strings.select($col.isNotNull(), $dbprops.get("NOTNULL"),$dbprops.get("NULL")) )    #if ($col.isAutoIncrement() && $table.IdMethod == "native")      #set ( $autoIncrement = $dbprops.get("AUTOINCREMENT") )    #else      #set ( $autoIncrement = " " )    #end        #set ( $entry = "$col.Name $type $size $default $nullString $autoIncrement," )    $strings.sub($strings.collapseSpaces($entry)," ,",",")#end

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?