I have just started to use a "Custom_EntityInitializationTemplate" as per documentation to insert initialisation code into the BaseEntity classes.
The provided entityBase.template file contains the include "Custom_EntityInitializationTemplate" twice - once in the "InitClassEmpty" method, and once in the "InitClassFetch" method, like so:
<# Custom_EntityInitializationTemplate #>
However, when generated, the include only seems to have worked for the first instance - in the "InitClassEmpty" method, and is ommited in second instance, in the "InitClassFetch" method.
However, if the first instance of the include is removed and the project re-generated, the include will work in the "InitClassFetch" method as this is now the first instance.
I am guessing that I am either missing something very simple, or this is a bug in the include engine when the same template is included more than once.
Any help appreciated.