脚本中的ColdFusion9 orm属性

Phi*_*enn 0 coldfusion 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>
Run Code Online (Sandbox Code Playgroud)

Joh*_*non 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";
}
Run Code Online (Sandbox Code Playgroud)