comment tag?

Posts   
 
    
Posts: 27
Joined: 16-Jul-2007
# Posted on: 25-Nov-2008 21:02:33   

i have looked but not found a tag for commenting in template studio.

e.g. excluding a block of template code from generation without actually deleting it from the template.

if i have missed something please advise. if not what are the chances of getting an 'ignore' tag into tdl?

example:


<[Ignore]>
    /// <summary>
    /// Dto class which represents the entity '<[CurrentEntityName]>'.<br/><br/>
    /// <[Foreach CustomProperty Entity]>
    /// <[CustomPropertyName]>: <[CustomPropertyValue]><br/><[NextForeach]>
    /// </summary>
    public <[If UsePartialClasses]>partial <[EndIf]>class <[CurrentEntityName]>Dto : <[ If IsSubType ]><[ SuperTypeName ]>Dto<[ Else ]>CommonDtoBase<[ EndIf ]><[Foreach AdditionalInterfaces]>, <[CurrentAdditionalInterface]><[NextForeach]>
    {
        #region Class Member Declarations
<[Foreach RelatedEntity OneToMany CrLf]><[If Not MappedFieldRelationIsHidden]>      private DtoCollection<<[RelatedEntityName]>Dto> _<[CaseCamel MappedFieldNameRelation]>;<[EndIf]><[NextForeach]>
<[Foreach RelatedEntity ManyToMany CrLf]><[If Not MappedFieldRelationIsHidden]>     private DtoCollection<<[RelatedEntityName]>Dto> _<[CaseCamel MappedFieldNameRelation]>;<[EndIf]><[NextForeach]>
<[Foreach RelatedEntity ManyToOne CrLf]><[If Not MappedFieldRelationIsHidden]>      private <[RelatedEntityName]>Dto _<[CaseCamel MappedFieldNameRelation]>;<[EndIf]><[NextForeach]>
<[Foreach RelatedEntity OneToOne CrLf]><[If Not MappedFieldRelationIsHidden]>       private <[RelatedEntityName]>Dto _<[CaseCamel MappedFieldNameRelation]>;<[EndIf]><[NextForeach]>
        #endregion

        #region Statics
        private static Dictionary<string, string>   _customProperties;
        private static Dictionary<string, Dictionary<string, string>>   _fieldsCustomProperties;

<[EndIgnore]>

Otis avatar
Otis
LLBLGen Pro Team
Posts: 39771
Joined: 17-Aug-2003
# Posted on: 26-Nov-2008 10:22:53   

There's no comment statement in TDL, true. We'll think about it for v3. We haven't decided yet if we'll drop TDL for new stuff completely or not. (it will be supported for backwards compatibility IF we decide to drop it in favor for .lpt. Currently changes look like we'll keep it, but as said, we haven't decided yet simple_smile )

Frans Bouma | Lead developer LLBLGen Pro