2009-12-27 4 views
0

Я хотел бы написать следующее в синтаксисе скрипта, а не в синтаксисе тега старого стиля.Свойства orm ColdFusion9 в скрипте

<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"; 
} 
Смежные вопросы