IsIdentity in TDL

Posts   
 
    
tbeyhan
User
Posts: 23
Joined: 23-May-2006
# Posted on: 17-Jan-2011 12:19:15   

Hi, I'm trying to build data annotation classes for my entities. According to field types i want to add attributes to my code. My problem is i can't find a method to distinguish identity fields. There is a IsIdentity token but i couldn't find the proper method to check it.

Cheers,

Walaa avatar
Walaa
Support Team
Posts: 14950
Joined: 21-Aug-2005
# Posted on: 17-Jan-2011 15:43:10   

<[IsIdentity]> is used in loopes affecting the currentEntityField element.

tbeyhan
User
Posts: 23
Joined: 23-May-2006
# Posted on: 17-Jan-2011 16:12:13   

Walaa wrote:

<[IsIdentity]> is used in loopes affecting the currentEntityField element.

Yes i'm using loops simple_smile but IsIdentity just returm true or false. I couldn't find proper StringValueName for StringValueEquals statement to check the value

daelmo avatar
daelmo
Support Team
Posts: 8245
Joined: 28-Nov-2005
# Posted on: 18-Jan-2011 06:04:31   

For more specific and deep things in the templates the best thing is to use .LPT templates instead of TDL.

Also, you are adding attribute to the entities right? Shouldn't be more easy (if you are usin v3) to write a plugin that add such attribute definition to the fields?

David Elizondo | LLBLGen Support Team