columns.vm

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

VM
18
字号
#foreach ($col in $table.Columns)    #set ( $type = $dbprops.get($col.Type) )	#if ( $type == 'MEDIUMTEXT' || $type == 'LONGTEXT' || $type == 'BLOB' || $type == 'MEDIUMBLOB' || $type == 'LONGBLOB' )		#set ( $size = '' )	#else		#set ( $size = $col.printSize() )	#end    #set ( $default = $col.DefaultSetting )    #set ( $nullString = $strings.select($col.isNotNull(), $dbprops.get("NOTNULL"),"") )    #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 + -
显示快捷键?