ColdFusion 9.0 Resources |
EntityLoad with entityname and IDDescriptionLoads and returns an entity which has ID as the primary key value. If unique is true, then the entity is returned. If the entity has a composite key, then the ID has to be specified as key-value pairs (ColdFusion struct). ReturnsArray (by default) CategoryFunction SyntaxEntityLoad (entityname, id [, unique]) See AlsoEntityLoad with entityname, EntityLoad with entityname and filtercritieria, EntityLoad with entityname, filtercriteria, and sortorder Parameters
Examples<cfset employeeArr = EntityLoad('employee', 100)> <cfset employee = EntityLoad('employee', 100, true)> <cfset orderDetail = EntityLoad('orderdetails', {OrderID=100, ProductID=1}, true)> |