开发者

ColdFusion9 orm properties in script

I'd like to write the following in script syntax rather than the old style tag syntax.

<cfcomponent persistent="true" table="AuditType" schema="Audit" >
    <cfproperty name="AuditTypeID" column="AuditTypeID" ormtype="int" fieldtype="id" />
    <cfproperty name="AuditTypeName" column="AuditTypeName" or开发者_如何学Cmtype="string"  />
    <cfproperty name="AuditTypeSort" column="AuditTypeSort" ormtype="integer" />
</cfcomponent>


the cfscript syntax really is quite similar,

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

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜