Set Fields using Sequence Plug in

Posts   
 
    
jvidal
User
Posts: 37
Joined: 17-Sep-2007
# Posted on: 11-Oct-2007 10:46:03   

Hi,

I'm using LLBL Gen Pro 2.5, and so far it has been a great tool.

Currently I've to assign all the id fields from my entities to Sequence fields from my database. I thing this could be done via Plug-in but before I start writing it, could you please confirm that this is possible?

Is the sequence collection available in the plug-in object model, can the property in to be assigned against the entity field too?

Many thanks! Jaume

Walaa avatar
Walaa
Support Team
Posts: 14987
Joined: 21-Aug-2005
# Posted on: 11-Oct-2007 11:29:47   

Currently I've to assign all the id fields from my entities to Sequence fields from my database.

You can set them manually in the Designer, or do you want to automate this for some reason? Anyway in the SD.LLBLGen.Pro.DBDriverCore Namespace : IDBSchema, as well as tables and views there is also a Sequences collection. Please consult the LLBLGen Pro SDK Reference manual for more info.

jvidal
User
Posts: 37
Joined: 17-Sep-2007
# Posted on: 11-Oct-2007 11:33:01   

Hi Walaa

Thanks for your fast reply.

Yes I want to automate this becuase we have around 300 tables to be set up, and for future uses on other DB Schemas.

Will start doing the plug-in for this then, thanks a lot.