Is there a way to do something like this?
<[Foreach EntityField CrLf]><[If SourceColumnIsNullable]> some code... <[EndIf]><[NextForEach]>
So, for each entityfield, if a column is nullable I want to generate some bit of code. Any suggestions?
This statement isn't available in TDL. Please use an .lpt template and use something like: <% foreach(EntityFieldDefinition field in entity.Fields) { if(field.MappedFieldIsNullable) { %> // your code <% } } %>
Thanks
I've only been using TDL, but I guess its time to start learning to use LPT.