I have the following in my TDL template definition:
<[If IsPrimaryKey ]>[Key]<[EndIf]>
<[If IsStringField ]>[Size(<[SourceColumnMaxLength]>)]
[DbType("<[SourceColumnDbType]>(<[SourceColumnMaxLength]>)")]<[EndIf]>
[Persistent("<[SourceColumnName]>")]<[ UserCodeRegion "AdditionalAttributes" ]>
// __LLBLGENPRO_USER_CODE_REGION_START AdditionalAttributes
// __LLBLGENPRO_USER_CODE_REGION_END
<[EndUserCodeRegion]>
public <[TypeOfField]> <[EntityFieldName]>
....
If I put code in between those region comment lines, it's erased on regeneration.
Am I missing something obvious here?
Thanks!