Reputation: 47595
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" ormtype="string" />
<cfproperty name="AuditTypeSort" column="AuditTypeSort" ormtype="integer" />
</cfcomponent>
Upvotes: 0
Views: 166
Reputation: 37507
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";
}
Upvotes: 7