GenerateNullableFieldsAsNullableTypes

Posts   
 
    
harmen
User
Posts: 47
Joined: 22-Jun-2007
# Posted on: 21-Jun-2010 15:34:18   

(using 2.6)

Hi,

How can I access the project property GenerateNullableFieldsAsNullableTypes in my TDL template? I would like to use it in an if statement.

Edit: I also need to get to the 'Generate as Nullable type' setting at the field level. Is it possible?

Thanks, Harmen

daelmo avatar
daelmo
Support Team
Posts: 8245
Joined: 28-Nov-2005
# Posted on: 22-Jun-2010 02:11:21   
<[Foreach EntityField CrLf]>
...
<[If GenerateAsNullableType]>Nullable
...

For more information you can inspect the LLBLGen built-in templates ([LLBLGen Pro v2.6 installation folder]\Templates\SharedTemplates\Net2.x\C#) and/or consult the SDK documentation.

David Elizondo | LLBLGen Support Team