ROWGUIIDCOL / IsIdentity

Posts   
 
    
shware
User
Posts: 23
Joined: 14-May-2007
# Posted on: 19-Oct-2007 16:21:53   

Hi,

Using 2.5.09242007 Final of Template Studio.

In LPT files, is there a way to determine if a column is a ROWGUIDCOL which uses NewId()? I was trying to prevent these columns from generated an edit tag. I was able to modify the templates but am still wondering if there are other ways to id these id cols. IsIdentity doesn't weem to pick these up.

Also, in the LPT files is there a way to access to the SQL Field Name? I see the SourceColumnName as part of the TDL parser but not sure if this is available in LPT.

Thanks!

Shawn

Walaa avatar
Walaa
Support Team
Posts: 14987
Joined: 21-Aug-2005
# Posted on: 19-Oct-2007 17:25:16   

I think you need to use: EntityFieldDefinition class And check the following properties: IdentityValueSequenceName IsIdentity MappedField

Please consult the LLBLGen Pro v.2.5 SDK Reference manual

shware
User
Posts: 23
Joined: 14-May-2007
# Posted on: 20-Oct-2007 02:14:12   

Thanks - this was what I was looking for:

field.MappedField.IsRowGUID did it....I keep looking in the SDK Documentation vs Reference. disappointed

Shawn

Walaa wrote:

I think you need to use: EntityFieldDefinition class And check the following properties: IdentityValueSequenceName IsIdentity MappedField

Please consult the LLBLGen Pro v.2.5 SDK Reference manual