Universal datasource
This one may not seem that big but it sure is nice. We no longer need to pass a variable or manually code our <cfQuery />
or other data interactions. This is a required variable when working with ORM technology. Otherwise it is optional. See the following example code:
<!--- the code used before ---> <cfquery name="myQuery" datasource='myDataSource' /> <!--- the code used after ---> <cfquery name="myQuery"/>
What we should notice is the need to specifically declare the datasource is no longer needed if and only if the datasource is declared in the Application.cfc
file using the variable name this.datasource
. Outside the Application.cfc
file, it will be visible as application.datasource
.