Hi,
I'm currently writing my own templates.
I want to do following:
Some entities have to implement a specific interface. Since the implementation of this interface is common to this entities I thought I could write a template which injects this code to these entities. Other entities of the project (more or less the (m,n) tables) do not need this interfaces.
Ok, I defined custom properties like (Name, Value): (Interface, <Name of interface>)
In the template I iterate over the properties. That's ok so far.
But if I do following the output looks not OK:
<[Foreach CustomProperty Entity]><[If StringValueEquals CustomPropertyName "Interface"]>, <[CustomPropertyValue]><[EndIf]><[NextFor]>
Produces following garbage:
EntityStringValueEqualsCustomPropertyName "Interface"]>, IAssociation
I guess the CustomPropertyName is not allowed in the grammar at this place, but if would be nice to have. Then it would be possible to tag the entities with properties and write templates which act on these properties.
Christoph