Skip to main content

T4 Text Templates Generate Needed Files

The platform utilizes T4 text templates to generate nearly all needed files for a Module. The templates require an Entity Data Model to be created first, to use as a data source. At the top of the template will be a configuration section where you will modify the input parameters to work with your project. By default, the Entity Data Model should be created in the Eleflex.Email.Server project.

The text templates will create partial interfaces and classes, as well as make sure methods are marked virtual to allow developers to create derived classes with the most overloading possibilities. Running the template will cause all files to be regenerated, so do not make changes in generated files. Whenever possible, create a new partial file to add functionality, otherwise modifying the template may be required.

The text templates for each of the assemblies is listed along with the files produced for each template.