Whatever message this page gives is out now! Go check it out!
This function has been enhanced in ColdFusion 9.0.1 to support multiple data sources in the same application. |
Parameter | Description |
entityName | Entity name of the persistent CFC. |
properties | Key-value pair (ColdFusion struct) of property names and values. |
<cfset artistObj = entityNew("Artists",{FirstName="Tom",LastName="Ron"})> |
newArtistObj = EntityNew("Artists"); newArtistObj.setfirstname("John"); newArtistObj.setlastname("Smith"); newArtistObj.setaddress("5 Newport lane"); newArtistObj.setcity("San Francisco"); newArtistObj.setstate("CA"); newArtistObj.setPostalCode("90012"); newArtistObj.setphone("612-832-2343"); newArtistObj.setfax("612-832-2344"); newArtistObj.setemail("jsmith@company.com"); newArtistObj.setThePassword("jsmith"); EntitySave(newartistobj); ormflush(); |