【问题标题】:ColdFusion9 orm properties in script脚本中的 ColdFusion9 orm 属性
【发布时间】:2009-12-27 01:19:33
【问题描述】:

我想用脚本语法而不是旧样式的标记语法来编写以下内容。

<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>

【问题讨论】:

    标签: orm coldfusion


    【解决方案1】:

    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";
    }
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2018-06-29
      • 1970-01-01
      • 2012-01-26
      相关资源
      最近更新 更多