Please help
I need to do audits for all data that is inserted, deleted, or updated in the database. My audit record should include a primary key value of the modified record. I have a problem with getting a primary key value for inserts:
My LLBLGen entity has a primary key fields specified as Identiy/Sequence fields, so I don't need to specify the primary key value for new entities - LLBLGen populates them for me when I call the SaveEntity method. But in order to create an audit record, I need to have the primary key value prior to executing SaveEntity.
Is there a way to get the next sequence value by using LLBLGen? Can I use the same method as LLBLGen uses to set the Identity/Sequence fields?