Templates File Names

Although syntax of all Active Templates is the same, RapTier distinguishes five different types of templates using the template file name.

Database_<Something>.atcs - Invoked once receiving IDatabase in the Database environment variable.
Table_<Something>.atcs - Invoked one time for every table in the database model. When calling this method, RapTier passes ITable as the Table environment variable.
Procedure_<Something>.atcs - Invoked one time for every stored procedure or function in the database model. When calling this method, RapTier passes IStoredProcedure as the Procedure environment variable.
DirectoryInfo.atcs - Used to control the code generation of all templates in the directory (and all the sub-directories) where DirectoryInfo.atcs is located.
<Something>.atcs - RapTier does not call this type of templates directly. They are used to store shared static methods and properties used by other templates.

The templates are processesed in the following order:

  1. DirectoryInfo.atcs template
  2. Database_<Something>.atcs template(s)
  3. Procedure_<Something>.atcs template(s)
  4. Table_<Something>.atcs template(s)
  5. Templates in the child directories