Home
Help
Register
Log in

Search

 
   Active Threads  

You are here: Home > LLBLGen Pro > Custom Templates> Conditional generation based on substring
 

Pages: 1
Custom Templates
Conditional generation based on substring
Page:1/1 

  Print all messages in this thread  
Poster Message
ww
User



Location:

Joined on:
01-Oct-2004 22:58:25
Posted:
65 posts
# Posted on: 18-May-2009 22:03:59.  
I've created custom templates to do some additional code generation, and I need to not include some relations in the generated code. I can identify these relations because they all have a standard prefix in their name, but there doesn't seem to be anything I can do with this in TDL. Is there a substring function I'm missing that I could use with StringValueEquals? Or some other way I can identify the relations I don't want to generate?
  Top
daelmo
Support Team



Location:
Guatemala City
Joined on:
28-Nov-2005 23:35:24
Posted:
8071 posts
# Posted on: 19-May-2009 04:03:31.  
You could opt for:

A. Write a custom property on those entities that wont be included, then identify these entities by their custom property on the template.

or

B. Use LPT templates to gain flexibility on your templates.


David Elizondo
LLBLGen'ing (articles and code snippets) | linkedin | twitter
 
Top
Pages: 1  


Powered by HnD ©2002-2007 Solutions Design
HnD uses LLBLGen Pro

Version: 2.1.12172008 Final.