Version.VersionID

Posts   
 
    
kievBug
User
Posts: 105
Joined: 09-Jan-2009
# Posted on: 11-Jan-2010 21:11:37   

Hey guys,

In template studio I see a Version property that belong to different objects like (EntityFieldDefinition, EntityDefinition, etc). My question actually is does this property changes and when?

I'm trying to use it for Entity ID. I'm trying to generate a SQL script which will insert some info into the metadata tables automaticaly and then when something is changed I need to merge changes with data that is already in the tables.

Can I use this field? Or I can just use entity name for entity, property name and entity name for property, etc.

Thanks, Anton

daelmo avatar
daelmo
Support Team
Posts: 8245
Joined: 28-Nov-2005
# Posted on: 12-Jan-2010 05:09:24   

Hi Anton,

If you are looking that property from intellisense, it might be that it doesn't belong to that object. Template Studio's intellisense is very basic, it's more like a 'hint list'. According to the SDK Reference Manual, the VersionID stands for the Version number of the ElementVersion class of the DBDriverCore, so I doubt that you can use that property for what you are looking for.

The generator engine most of the time generates the code no matter whether there are changes or not. So I think this is the way you should go with your custom templates.

David Elizondo | LLBLGen Support Team