CFML ORM Code generator that loops through the system tables tables in a MSSQL DB. It finds any defined relationships and outputs copyable code required to create all of your ORM CFC files.
Notes;
datasource
is the only required URL paramater.tables
andcreate_files
are optional URL paramaters. Iftables
is not specified the code will return output for all DB tables. Be careful if your database is large as this could require a lot of processing power. If thecreate_files
paramater is defined the ORM files will actually be created at ~\application\ORM{dynamic_orm_file_name}.cfc- The Relationships are named, in TitleCase, based on the table name (for one-to-many and many-to-many relationships) or column name (for many-to-one).
- For any Relationships defined you will of course have to create the associated ORM file for that relationship.