2009-12-27 82 views
0

我想用脚本语法而不是旧式标记语法编写以下代码。脚本中的ColdFusion9 orm属性

<cfcomponent persistent="true" table="AuditType" schema="Audit" > 
    <cfproperty name="AuditTypeID" column="AuditTypeID" ormtype="int" fieldtype="id" /> 
    <cfproperty name="AuditTypeName" column="AuditTypeName" ormtype="string" /> 
    <cfproperty name="AuditTypeSort" column="AuditTypeSort" ormtype="integer" /> 
</cfcomponent> 

回答

7

的CFSCRIPT语法真的是颇为相似,

component persistent="true" table="AuditType" schema="Audit" { 
    property name="AuditTypeID" column="AuditTypeID" ormtype="int" fieldtype="id"; 
    property name="AuditTypeName" column="AuditTypeName" ormtype="string"; 
    property name="AuditTypeSort" column="AuditTypeSort" ormtype="integer"; 
}